Ruby on Rails
Tuesday, February 3, 2015
Yuri,
You may want to review protect_from_forgery: <http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html#method-i-protect_from_forgery>
On Tue, Feb 3, 2015 at 7:19 AM, Yuri Kanivetsky <yuri.kanivetsky@gmail.com> wrote:
--Can you try like this <%= form_for(@task, remote: true, authenticity_token: true, html: {'data-type' => 'html'}) do |f| %>Yep, that pretty much settles it.Regards,Yuri
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/5fdcf62c-8c72-4498-9393-47f6a1d8e25e%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAHUC_t8xJ53oO_8YjAk2McBowP7uP1PEgp13egm4CXp0CfCS4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment