On Sep 26, 3:18 pm, "Jon Liu" <[EMAIL PROTECTED]> wrote:
> I tried manually defining @album like so
>
> id=1
> [EMAIL PROTECTED](params[:review])
> [EMAIL PROTECTED](id)
> [EMAIL PROTECTED]
>
> Because of this, I don't think it's that @album was not defined. Also as I
> brought up before, and I think this is key in showing their is something
> fundamentally wrong in my set up, the association doesn't even work at the
> command line.
>
> Ex:
> a=Album.find(1)
> r=Review.new
> r.album=a
>
> This yields an error that says "NoMethodError: undefined method 'album=' for
> #<Review:......"
>
> Any insight?
>
Well the full stacktrace is sometimes helpful. Just to be sure, your
reviews table does have an album_id column ?
Fred
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---