Closed ambethia closed 9 years ago
We're going to continue making a blog app.
email
password_digest
name
user
Post
belongs_to
has_many
PostsController
current_user
BookmarksController
User
rake db:seed
https://nameless-woodland-3754.herokuapp.com/
Week 6 - Day 2
We're going to continue making a blog app.
email
andpassword_digest
fields, probably aname
too, that's up to you.user
reference to yourPost
model to setupbelongs_to
/has_many
relationship.PostsController
and scope all the actions tocurrent_user
. Look at our Rezagg app'sBookmarksController
.User
in the console or usingrake db:seed
, don't forget to do this in production (Heroku) too.