form_for is broken with new router
Reported by Matt Aimonetti (mattetti) | September 23rd, 2008 @ 06:59 AM | in 1.0
thunt: seems like form_for(@post) is broken because the route name it's looking for is being passed to #url as a string instead of a symbol carllerche: It'll have to be converted to a symbol carllerche: strings could be route variables carllerche: such as url("users", "show", 15) carllerche: unless we decide to ditch anonymous params carllerche: which allows you to know specify a hash for everything
Comments and changes to this ticket
-
Tyler Hunt September 23rd, 2008 @ 07:18 AM
Attached a patch that converts
@nameto a symbol before passing it to#url. -
Michael Klishin (antares) September 23rd, 2008 @ 07:03 PM
- → State changed from new to open
-
Michael Klishin (antares) October 7th, 2008 @ 11:59 AM
- → Milestone changed from 0.9.8 to 1.0
- → Assigned user changed from Yehuda Katz (wycats) to Carl Lerche
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
