Forum: Rails-core (closed, excessive spam) [Q] How to get authenticiy_token value?

8e1efd5009e8efa38aa4393bc223f3c5?d=identicon&s=25 kwa@kuwata-lab.com (Guest)
on 2008-05-05 15:56
(Received via mailing list)
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
8f93a872e399bc1353cc8d4e791d5401?d=identicon&s=25 Mislav MarohniÄ? (mislav)
on 2008-05-05 16:18
(Received via mailing list)
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.
8e1efd5009e8efa38aa4393bc223f3c5?d=identicon&s=25 kwa@kuwata-lab.com (Guest)
on 2008-05-05 17:58
(Received via mailing list)
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
This topic is locked and can not be replied to.