This project is archived and is in readonly mode.
form_for in current rails master is broken (really)
-
z3cko
- Title changed from form_for in current rails master is broken (no to form_for in current rails master is broken (really)
-
Jeremy Kemper
- Milestone cleared.
- State changed from new to open
- Assigned user set to Carl Lerche
-
z3cko
i just confirmed that this issue also exists with erb, so it's definitely rails related and not haml related.
<%= form_for(:staticpage, @page, :url => { :action => "create" }) do |f| %> <%= f.label :title %> <% end %>produces
<form action="/staticpages" method="post"> <label for="staticpage_title">Title</label> </form> -
z3cko
sorry, but i can reproduce this on the current master.
nothing changed, same outcome. -
Denis Odorcic
I can't reproduce either, just tried with a fresh app. Perhaps you have some different routes setup that are triggering this?
-
z3cko
more specific: if you are trying to override the action that was intended,
i.e. update2 instead of update, the form_for helper does not accept the extra :url => {:action => "update2"}i hope the issue is more understandable now and can be reproduced.
-
Jeremy Kemper
- State changed from resolved to open
-
José Valim
@z3cko can you please provide a failing test case in Rails test suite or isolate the issue in an application?
-
Yehuda Katz (wycats)
- State changed from open to needs-more-info
-
Santiago Pastorino
- State changed from needs-more-info to resolved
Works on the last version, thanks for your bug report.