Ruby on Rails Monday, April 30, 2012

On 30 April 2012 09:24, Soichi Ishida <lists@ruby-forum.com> wrote:

Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate point(s) in previous message. Thanks

> Thanks for your answer. but it gives a different error
>
> SQLite3::SQLException: no such column: contributions.user_id: SELECT
> "contributions".* FROM "contributions"  WHERE "contributions"."user_id"
> = 3
>
> Maybe the association is not properly set up?

Is there a column user_id in the contributions table? You should have
added one for the the belongs_to association.

I think it would be worth your while working right through some
tutorials on Rails in order better to understand the basics of Rails.
railstutorial.org is good and free to use online.

Colin

>
> soichi
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> 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 rubyonrails-talk+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
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 rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment