You are previewing Rails 3 in Action.

Rails 3 in Action

Cover of Rails 3 in Action by Ryan Bigg... Published by Manning Publications
O'Reilly logo

Chapter 6. Authentication and basic authorization

This chapter covers

  • Working with engine code and generators
  • Building an authentication system with an engine
  • Implementing basic authorization checking

You’ve now created two resources for your Ticketee application: projects and tickets. Now you’ll use a gem called Devise, which provides authentication, to let users sign in to your application. With this feature, you can track which tickets were created by which users. A little later, you’ll use these user records to allow and deny access to certain parts of the application.

The general idea behind having users for this application is that some users are in charge of creating projects (project owners) and others use whatever the projects ...

The best content for your career. Discover unlimited learning on demand for around $1/day.