CSC/ECE 517 Spring 2016/Refactor review mapping controller.rb: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
Line 5: Line 5:


=='''Installation'''==
=='''Installation'''==
There are six commands that are required for the successful installation of Devise. They are listed out below:
*Add the devise gem to your gemfile.
gem 'devise'


=='''Modules'''==
=='''Modules'''==

Revision as of 21:12, 6 February 2016

Devise is a rack based full-fledged authentication system for Rails. It is a complete MVC solution meaning it can support various models, views and controllers as part of its code and can be used be directly by developers. Devise is simple to use and starts up with a couple of commands but it is also highly customizable.

History

Devise is first introduced in January 2010 by Plataformatec, a company which builds web and mobile applications. Devise is one of the few authentication systems which support rack based applications and hence can support Rails 3 and up as they are completely rack based. The latest version of Devise available is v3.5.3 and it is up to date to Rails 5 beta 2.

Installation

There are six commands that are required for the successful installation of Devise. They are listed out below:

  • Add the devise gem to your gemfile.
gem 'devise'

Modules

Methods

authenticate_user!

current_user

user_signed_in?

signed_in(@user)

sign_out(@user)

user_session

See Also

References

Further Reading

External Links