This project is archived and is in readonly mode.
partials named "_next" crash render
Reported by Ben VandenBos | September 29th, 2008 @ 11:30 PM
To repro, create a partial called, "_next.html.erb", then try to render it.
You get something like the following:
Showing widget/profile_completeness/_next.html.erb where line #52 raised:
compile error
/[path_removed]/_next.html.erb:-3: syntax error, unexpected '=', expecting kEND
next = local_assigns[:next]
^
It should probably either not crash or at least raise an explanatory exception.
Comments and changes to this ticket
-
josh November 13th, 2008 @ 05:21 PM
- Assigned user set to josh
- Milestone cleared.
- State changed from new to open
-
josh November 13th, 2008 @ 05:25 PM
- State changed from open to wontfix
nvm, this can not be fixed.
"next" is a reserved keyword in ruby therefore you can't create a variable called next.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>