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 67 67 68 68 contents = '' 69 69 contents << hidden_field(record_name, :id) unless record.new_record? 70 contents << token_tag 70 71 contents << all_input_tags(record, record_name, options) 71 72 yield contents if block_given? 72 73 contents << submit_tag(submit_value)