Eric Pugh wrote:
> I tried out adding the exclude line:
> 
>     protect_from_forgery :only => [:tag]
> 
> However, it seems ugly that I have to add each method manually.  I
> tried
> 
>     protect_from_forgery :exclude => [:auto_complete_for_tag_name]
> 
> but that didn't work.  Is this oddness a) a bug or b) just something
> the docs for the plugin should discuss?

use :except instead of :exclude

=> protect_from_forgery :except => [:auto_complete_for_tag_name]
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to