README.md in invisible_captcha-0.6.4 vs README.md in invisible_captcha-0.6.5
- old
+ new
@@ -72,18 +72,18 @@
```
### Controller style (resource oriented):
In your form:
-```
+```erb
<%= form_for(@topic) do |f| %>
<%= f.invisible_captcha :subtitle %>
<% end %>
```
In your controller:
-```
+```ruby
def create
if invisible_captcha?(:topic, :subtitle)
head 200 # or redirect_to new_topic_path
else
# regular workflow
@@ -92,15 +92,15 @@
```
### Setup
If you want to customize some defaults, add the following to an initializer (config/initializers/invisible_captcha.rb):
-```
+```ruby
InvisibleCaptcha.setup do |ic|
ic.sentence_for_humans = 'If you are a human, ignore this field'
ic.error_message = 'You are a robot!'
ic.fake_fields << 'another_fake_field'
end
```
## License
-Copyright (c) 2012 Marc Anguera. Invisible Captcha is released under the [MIT](http://opensource.org/licenses/MIT) License.
+Copyright (c) 2012-2014 Marc Anguera. Invisible Captcha is released under the [MIT](LICENSE) License.