0
Hi I’m new to Ruby on Rails. I’m trying to create a small blog site. I have two tables one for posts and one for comments. Each Post will have many comments, and third table will be the categories wanted to know how to relate the category table to the posts, for each post has 1 category. I’m using this command:
rails g scaffold Category name:string post:belongs_to
But the error that returns me when I ask this table is:
(1 error prohibited this Category from being saved:)
If anyone can help I’d be very grateful.