0

I just generated a scaffold. I added has_many :posts to the user.rb and added belongs_to :user to the post.rb. But now when i try to create a new post it tells me that an error occurred and that *user must exist? Anyone know how to solve this?

0 Answers0