Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10739: fix_form_with_csrf.diff

File fix_form_with_csrf.diff, 0.6 kB (added by jeremyevans, 11 months ago)
  • actionpack/lib/action_view/helpers/active_record_helper.rb

    old new  
    6767 
    6868        contents = '' 
    6969        contents << hidden_field(record_name, :id) unless record.new_record? 
     70        contents << token_tag 
    7071        contents << all_input_tags(record, record_name, options) 
    7172        yield contents if block_given? 
    7273        contents << submit_tag(submit_value)