Displaying 1 result from an estimated 1 matches for "class_planner".
2006 May 10
4
using partials in a for loop
I''m trying to write a partial for a 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 =>...