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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
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-talkOh, I haven''t known it. Thnak you for good advice. -- regards, makoto kuwata --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com To unsubscribe from this group, send email to rubyonrails-core-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---