search for: add_course

Displaying 1 result from an estimated 1 matches for "add_course".

2006 May 10
4
using partials in a for loop
...eem 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 method ''course'' is not found. Is there something that I have to do differently when using a partial?...