Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

partials named "_next" crash render

#1140

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.

Reported by Ben VandenBos · September 29th, 2008 @ 11:30 PM

State: wontfix
Milestone: none
Assigned to: josh josh
Importance: none

Activity

  1. josh
    josh
    • Assigned user set to josh
    • Milestone cleared.
    • State changed from new to open

    November 13th, 2008 @ 05:21 PM

  2. josh
    josh
    • 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.

    November 13th, 2008 @ 05:25 PM