problems with associations.
I'm relatively new to this, and I would love some help. I'm sorry for
bugging you with such a newbie question, but I couldn't find a tutorial
I made my models like this:
model g User username password
model g Admin
model g Poster
model g Post title content
then, I set the associations like this:
then, when I go to the rails console, I cant make a post that belongs to
poster, or a post that belongs to poster...
User.create(:name => "joe")
usr = User.last
usr.Poster.create() ---- returns an error
What am I doing wrong here?
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 firstname.lastname@example.org.
To unsubscribe from this group, send email to email@example.com.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qb_bLsAkmycJ.
For more options, visit https://groups.google.com/groups/opt_out.