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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

weird loop behaviour

#1271

I've tried to use .each method inside html.erb file i have a hash with name @coremodules, whenever i use this :

<% @coremodules.each do |module|%> <%="module"%> <% end-%>

the |module| variable makes the .each method crash with syntax error

Reported by Waheed Barghouti · October 26th, 2008 @ 10:03 AM

State: invalid
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Brad Pauly
  2. Waheed Barghouti
    Waheed Barghouti

    yes Brad i know but i think the interrupter shouldn't take it as a keyword coz its inside the iterator identifier which is |module|, thanks for ur post anyways

    October 27th, 2008 @ 07:02 PM

  3. Frederick Cheung
    Frederick Cheung
    • State changed from new to invalid

    We all have to live with the constraints of the ruby interpreter, this isn't really the place to discuss/raise issues on it.

    December 8th, 2008 @ 03:15 PM