How to get value of authenticity_token in my helper method?
def my_delete_link(arg) return "/foo/#{arg.to_param}/delete?authenticity_token=#{???}" # How to? end
Please give me advices.
How to get value of authenticity_token in my helper method?
def my_delete_link(arg) return "/foo/#{arg.to_param}/delete?authenticity_token=#{???}" # How to? end
Please give me advices.
It’s called “form_authenticity_token”.
"/foo/#{arg.to_param}/delete?authenticity_token=#{form_authenticity_token}"
In future, direct usage questions not to this list, but to “Rails talk” list: http://groups.google.com/group/rubyonrails-talk
Thank you.
Mislav,
It's called "form_authenticity_token".
Thank you very much.
In future, direct usage questions not to this list, but to "Rails talk" list:http://groups.google.com/group/rubyonrails-talk
Oh, I haven't known it. Thnak you for good advice.