This project is archived and is in readonly mode.
Templates that use with_options...
-
David Workman
There is an error there... you are using '=' for the form_for line.
-
iain
@David: That's not an error. In Rails 3 you should do this. That works even in HAML.
-
José Valim
- Milestone cleared.
- State changed from new to open
- Assigned user set to Yehuda Katz (wycats)
- Importance changed from to High
-
Carlos Antonio da Silva
This error just happened to me while in development, and I created a test case showing the issue.
The same patch attached is also in this pastie: http://pastie.org/private/t66q1nzqhrwg0afl1bkmw, which contains the test suite output showing the double render issue. -
Marjan Krekoten'
I attached patch that fixes this issue. It also contains test patch from Carlos Antonio da Silva.
-
VirtualFunction
Many thanks everyone with the recent activity here. Just curious, will these patches make HAML work as expected too? If not I assume I will need to also raise this with the HAML dev(s)
-
Trotter Cashion
The patch from Marjan works for us on the 3-0-stable branch. Had an conflict applying it to master, however. Let us know if you'd like us to patch.
-
Marjan Krekoten'
Attached patch for master
-
Marjan Krekoten'
Cool. Can you please point me to commit that fixed this issue? I can't find it but it is interesting for me for self education.
Thx!
-
Justin Halsall
I'm looking at master and it seems as if the patch hasn't been added.
-
Samuel Kadolph
This patch isn't applied in master or 3-0-stable.
For anyone that needs it now, put this in
config/initializers. -
José Valim
The patch wasn't applied on master but it was fixed in a different way. I have even pushed the test case added by Carlos.
We won't apply the patch to 3-0-stable because whitelistening "with_options" is too brittle as solution to be applied in Rails as whole.
-
mdrozdziel
I am still getting this error with 3.0.5. What is the best workaround?
