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

Ticket #6499 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Fix deprecated link_to with :post in scaffold generator

Reported by: packagethief Assigned to: david
Priority: normal Milestone: 1.2
Component: Railties Version: edge
Severity: normal Keywords: tiny deprecation link_to post
Cc:

Description

This patch updates the scaffold and scaffold generator to use :method => :post in link_tags instead of the now-deprecated :post => true.

<%= link_to "Destroy", {:action => "destroy#{@scaffold_suffix}", :id => entry}, { :confirm => "Are you sure?", :method => :post } %>

Attachments

fix_deprecated_link_tag_with_post_in_scaffold.diff (1.7 kB) - added by packagethief on 10/26/06 15:40:10.

Change History

10/26/06 15:40:10 changed by packagethief

  • attachment fix_deprecated_link_tag_with_post_in_scaffold.diff added.

10/26/06 15:56:49 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [5366]) Fix scaffolding from using deprecated :post => true (closes #6499)