I suppose I'd have to see more code. If you have your associations
setup as I described, the status method should always be available to
any Theater object, paginating or not.
On Nov 6, 2006, at 2:20 PM, Patrick Crowley wrote:
Ok, thanks guys. That works great for my "show" action.
But it doesn't seem to work when I try to paginate across a list of
theaters (when showing search results). Do I need to add the status
table to my query?
Thanks,
Patrick
On Nov 6, 2006, at 2:00 pm, Chris Abad wrote:
I think you need this:
:theater belongs_to :status (rather than has_one :status). Then
add status_id to your theaters table.
You can then call the status name like this:
<%= theater.status.name %>
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby
_______________________________________________
Sdruby mailing list
[email protected]
http://lists.sdruby.com/mailman/listinfo/sdruby