How do you access something you've passed to a partial in the locals hash?

<% for file in @file_list %>
        <tr id="file_row_<%= file[0].id %>">
                <%= render_no_layout :template => "/shared/_file",
                  :locals => { :file => file } %>
        </tr>
<% end %>

but when rendering the shared/_file.rhtml template it complains about
missing local variable or
method 'file'

martin
_______________________________________________
Merb-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/merb-devel

Reply via email to