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.
--
regards,
makoto kuwata
on 05.05.2008 15:56
on 05.05.2008 16:18
On Mon, May 5, 2008 at 3:55 PM, kwa@kuwata-lab.com <kwa@kuwata-lab.com> wrote: > > How to get value of authenticity_token in my helper method? 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.
on 05.05.2008 17:58
Mislav, On May 5, 11:18 pm, "Mislav Marohniæ" <mislav.maroh...@gmail.com> wrote: > 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. -- regards, makoto kuwata