On 24 February 2012 13:27, Manish N. <[email protected]> wrote: > I migrate my application from rails 2.3.11 to rails 3.2.1 > > My models > > class Campaign < ActiveRecord::Base > has_many :campaign_reports > end > > class CampaignReport < ActiveRecord::Base > belongs_to :campaign > end > > In console > c = Campaign.first > > I got the output but when I do > > c.campaign_reports > > I got > > (Object doesn't support #inspect)
What happens if you do c.campaign_reports.first Colin > => > > I m using > rails 3.2.1 > ruby ruby 1.9.2p290 > gem 1.8.15 > rvm 1.10.2 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

