search for: reader_controller

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

2006 Oct 16
4
has many :through, accessing join model attribute (newbie)
from the rails recipes i have a has_many through "working". I can list a user and what magazines he subscribes to. but I can''t seem to figure out how to get the other attributes from subscriptions. (like last_renewed_on) reader_controller.rb def list_reader @readers = Reader.find(1) end ---------- list_readers.rhtml <dl> <dt><%= readers.name %> </dt> <% @readers.magazine.each do |reader|%> <dd><%= reader.title%></dd> <% end %> </dl> ---------- I''ve tried <%...