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.

Joseph ROUFF's latest activity

Saturday, September 12 2009
3187 [PATCH] When a collection rendered is empty it's now possible to assign to it... was updated in Ruby on Rails
  • Joseph ROUFF
    Joseph ROUFF commented at 11:56 AM

    I understand that you say, really.

    But I think that patche is really useful for people who have to use blank slates a lot in their apps (for instance in widgets...

Friday, September 11 2009
3187 [PATCH] When a collection rendered is empty it's now possible to assign to it... was created in Ruby on Rails
  • Joseph ROUFF
    Joseph ROUFF created the ticket at 8:40 AM

    Until now with Rails when we would handle empty collections in apps, we had to code it like that :

    <%# app/views/posts/index.erb %>
    <% if @posts.empty? %>
     <p>...