Learning Devise for Rails

In choosing a fully-featured user sign-in system for your Rails web applications you can’t do better than Devise. And there’s no better book for learning Devise than this superb step-by-step tutorial.

Learning Devise for Rails

Giovanni Sakti, Hafiz Badrie Lubis, Nia Mutiara

1 customer reviews
In choosing a fully-featured user sign-in system for your Rails web applications you can’t do better than Devise. And there’s no better book for learning Devise than this superb step-by-step tutorial.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$12.60
RRP $17.99
Save 29%
Print + eBook
$29.99
RRP $29.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$12.60
$29.99
$29.99p/m after trial
RRP $17.99
RRP $29.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781782167044
Paperback104 pages

Book Description

There are numerous ways of implementing user sign-ins on your Rails web applications. Of those different ways, using Devise is one of the most popular, quick and flexible way to get user sign-ins working. It is extensible and plays well with other gems such as CanCan (for user privileges) and OmniAuth (for Facebook and Twitter sign-ins).

A hands-on, all-in-one guide that gives you step-by-step instructions along with code examples to implement authentication systems in your application. This book will help you to implement various schemes of authentication systems including authorization and remote authentication, using Devise.

Helping you make your Rails applications more accessible and user-friendly; this book explains how to implement user sign-ins in Rails. It will also show you how to customize user authentication pages, such as sign-in, sign-up, forgot password, and account details, by making use of existing Devise views. In addition, you will learn about facilitating complex privilege rules using the CanCan gem. Finally, you will discover how to make sure your authentication codes work as expected by using integration tests.

You will learn all you need to know to create user email and social network sign-ins quickly, to customize user sign-in-related views, and implement complex privileges, as well as to ensure the stability of your authentication codes by testing them.

Table of Contents

Chapter 1: Devise – Authentication Solution for Ruby on Rails
Devise modules
Installation
Run your first application with Devise
Summary
Chapter 2: Authenticating Your Application with Devise
Signing in using authentication other than e-mails
Updating the user account
Signing up the user with confirmation
Resetting your password
Canceling your account
Customizing Devise actions and routes
Customizing your Devise layout
Integrating Devise with Mongoid
Summary
Chapter 3: Privileges
CollabBlogs – a web application for collaborative writing
Advanced CanCan usages
Summary
Chapter 4: Remote Authentication with Devise and OmniAuth
Remote authentication
OmniAuth
Implementing remote authentication in our application
Summary
Chapter 5: Testing Devise
The sign-up test
The user update test
The user deletion test
The sign-in test
The Remote authentication test
Summary

What You Will Learn

  • Understand Devise as a flexible and customizable authentication solution for Rails
  • Customize sign-in, sign-up, password reset, email confirmation, account cancellation, and user account edit pages
  • Hide and show views based on defined user authorization rules using CanCan view helpers
  • Configure OmniAuth to make user sign-ins and sign-ups via social network accounts work on your Rails application
  • Use CanCan abilities to implement simple and SQL-based user privileges to restrict user access
  • Test authentications to ensure code stability

Authors

Table of Contents

Chapter 1: Devise – Authentication Solution for Ruby on Rails
Devise modules
Installation
Run your first application with Devise
Summary
Chapter 2: Authenticating Your Application with Devise
Signing in using authentication other than e-mails
Updating the user account
Signing up the user with confirmation
Resetting your password
Canceling your account
Customizing Devise actions and routes
Customizing your Devise layout
Integrating Devise with Mongoid
Summary
Chapter 3: Privileges
CollabBlogs – a web application for collaborative writing
Advanced CanCan usages
Summary
Chapter 4: Remote Authentication with Devise and OmniAuth
Remote authentication
OmniAuth
Implementing remote authentication in our application
Summary
Chapter 5: Testing Devise
The sign-up test
The user update test
The user deletion test
The sign-in test
The Remote authentication test
Summary

Book Details

ISBN 139781782167044
Paperback104 pages
Read More
From 1 reviews

Read More Reviews

Recommended for You

Mastering Web Application Development with AngularJS Book Cover
Mastering Web Application Development with AngularJS
$ 26.99
$ 5.40
Rails 4 Application Development HOTSHOT Book Cover
Rails 4 Application Development HOTSHOT
$ 29.99
$ 21.00
AngularJS UI Development Book Cover
AngularJS UI Development
$ 26.99
$ 18.90
Bootstrap Site Blueprints Book Cover
Bootstrap Site Blueprints
$ 26.99
$ 18.90
CoffeeScript Programming with jQuery, Rails, and Node.js Book Cover
CoffeeScript Programming with jQuery, Rails, and Node.js
$ 14.99
$ 10.50
AngularJS Web Application Development Blueprints Book Cover
AngularJS Web Application Development Blueprints
$ 29.99
$ 21.00