search for: listing_control

Displaying 2 results from an estimated 2 matches for "listing_control".

2006 May 07
4
Getting column value from lookup table in HABTM relationship
...tables. Each listing can have many agents and each agent can have many listings. In the agents_listings table I have a column called ''is_primary_agent'' which denotes if the agent is responsible for the listing - only one agent can be primary. At the moment I use this in my listing_controller''s view action: @listing = Listing.find(@params[:id], :include => [ :agents, :listing_images, :listing_pdfs ] ) What is the best, most efficient way to have this attribute appear against my agents? TIA, Matt.
2006 Jun 05
1
file_column & RMagick
...s.rb:98:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:131:in `const_missing'' /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/dependencies.rb:133:in `const_missing'' /app/controllers/listing_controller.rb:28:in `new'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/base.rb:910:in `perform_action_without_filters'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/filters.rb:368:in `perform_action_without_benchmark''...