Displaying 1 result from an estimated 1 matches for "_class_list".
Did you mean:
class_list
2006 May 10
4
using partials in a for loop
...link_to_remote that i''m using over
and over again, but simply moving the code to a partial doesn''t seem to
work.
Here is how I have it set up:
class_planner.rhtml:
<% for course in @courses %>
<%= render :partial => "class_list" %>
<% end %>
_class_list.rhtml:
<li>
<%= link_to_remote "#{course.title}",
{:url => {:action => "add_course", :id => course}},
:class => "course", :name => "#{course.title}"
%>
</li>
The main error I''m getting is that the m...