how do you view the stacktrace?  I thin this is the solution to my
problem...only now migrations is acting funny with me...

On Fri, Sep 26, 2008 at 7:27 AM, Frederick Cheung <
[EMAIL PROTECTED]> wrote:

>
>
>
> On Sep 26, 3:18 pm, "Jon Liu" <[EMAIL PROTECTED]> wrote:
> > I tried manually defining @album like so
> >
> >      id=1
> >      @review=Review.new(params[:review])
> >      @review.album=Album.find(id)
> >      @review.save
> >
> > 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 rubyonrails-talk@googlegroups.com
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