I tried following tutorial
http://biodegradablegeek.com/2007/12/understanding-basic-database-relationships-in-rails/
and also got the problem again:
irb(main):019:0> tune.genre = Genre.find_by_name('Blues Rock')
NoMethodError: undefined method `genre=' for #<Song:0x3d08228>

So maybe i have a general problem .....

On 21 Feb., 11:59, Michael Pavling <[email protected]> wrote:
> On 21 February 2011 10:50, Colin Law <[email protected]> wrote:
>
> > This really makes no sense to me.
>
> +1
> Everything looks good... nothing is jumping out at me - but the error
> messages you're getting don't tie with what code/migrations you have.
>
> > Have a look and remove anything extra there.  Are
> > you *absolutely* sure you are looking at the right files?
>
> It could be worth just moving up one folder and typing "rails
> project2" and starting again - you can copy the migrations and model
> files over and check things one step at a time.

-- 
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.

Reply via email to