collab/app/helpers/application_helper.rb
2010-03-05 01:48:00 -05:00

12 lines
324 B
Ruby

# 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
end