Displaying 1 result from an estimated 1 matches for "list_form".
2006 Mar 29
3
partial variable help
Can''t work this out:
In list.rhtml:
<% for employee in @employees -%>
<%= render(:partial => "list_form", :object => employee) %>
<% end -%>
In _list_form.rhtml (partial):
<%= employee.id %>
In controller:
@employees = Employee.find(:all)
I get the following error:
undefined local variable or method `employee''
I everything is correct as far as I can see, just no v...