From: T- Di Date: 2012-08-06T23:39:02+09:00 Subject: Re: Join with ActiveRecord using non-standard schema Tried with this: @agreements = Agreement.find(:all, :include => :AgreementType) @agreements.first.name Which returned: NoMethodError: undefined method `name' for # from C:/tools/Ruby193/lib/ruby/gems/1.9.1/gems/activemodel-3.2.7/lib/active_model/attribute_methods.rb:407:in `method_missing' from C:/tools/Ruby193/lib/ruby/gems/1.9.1/gems/activerecord-3.2.7/lib/active_record/attribute_methods.rb:149:in `method_missing' from (irb):25 from C:/tools/Ruby193/bin/irb:12:in `
' But if I try @agreements.first.agreement_id U(which is a field on the Agreements table), it works correctly. -- Posted via http://www.ruby-forum.com/.