1. Computing
Michael Morin

Rails Blog Step 3: Authentication

By February 17, 2013

Follow me on:

So, you've scaffolded the posts model and installed an attractive WordPress theme, time to get down to it.  First thing we need to do is add some authentication.  Eventually, users will be able to log in and post comments, but you should also be able to log in and make blog posts.  For this, we'll generate a single User model with an is_blogger flag using the Devise plugin and then protect the actions we want protected using a before_filter.

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2014 About.com. All rights reserved.