Displaying 1 result from an estimated 1 matches for "render_no_layout".
2007 Jul 27
1
locals within a partial
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