Ruby on Rails Tuesday, December 14, 2010

On 14 December 2010 15:35, Amador Antonio Cuenca <sphi02ac@gmail.com> wrote:
> Hi guys, I'm following the Beginning Rails 3 Book, I've problems with the
> many to many relationship between Article-Category, when I try to create or
> show a article.
> Please help me, I'm new with Rails.
> Regards,
>
> ActiveRecord::StatementInvalid in Articles#new
>
> Showing I:/Labs/RailsProjects/blog/app/views/articles/_form.html.erb where
> line #27 raised:
>
> SQLite3::SQLException: no such column: articles_categories.category_id:

And has your articles_categories table got a column category_id?
If you think it has then how do you know?
If you still think it has show us db/schema.rb

Colin

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