Recent Posts by Ben
|
Aug 31, 2007
|
Topic: General Ruby/Rails Discussion / associations and join tables How about adding another association that filters based upon the ‘major’ condition…
class Country < ActiveRecord::Base
has_many :carrier_countries
has_many :carriers, :through => :carrier_countries
has_many :major_carriers, :through => :carrier_countries, :conditions => 'major = 1'
end
http://weblog.jamisbuck.org/2007/1/9/extending-activerecord-associations |
|
Aug 31, 2007
|
Topic: Rails on Windows / VibrantInk VS settings Here’s a few other options for TextMate-like VS colouring…. Rails-y TextMate Theme For Visual Studio |