2010-03-04 06:22:45 +00:00
|
|
|
# Methods added to this helper will be available to all templates in the application.
|
|
|
|
module ApplicationHelper
|
|
|
|
|
|
|
|
def csrf_meta_tag
|
|
|
|
out = ''
|
|
|
|
out << tag(:meta, :name => 'csrf-token', :content => form_authenticity_token)
|
|
|
|
out << tag(:meta, :name => 'csrf-param', :content => 'authenticity_token')
|
|
|
|
end
|
|
|
|
|
2010-03-05 06:48:00 +00:00
|
|
|
|
2010-03-04 06:22:45 +00:00
|
|
|
end
|