-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f307534
commit 01d36ea
Showing
8 changed files
with
169 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
source/_posts/2011-10-01-learning-to-authenticate-with-devise.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
--- | ||
layout: post | ||
title: "Learning to Authenticate With Devise" | ||
date: 2011-10-01 19:37 | ||
comments: true | ||
categories: | ||
--- | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="sixcol"> </div> | ||
<div class="sixcol last"> | ||
<h1 class="main-head">Learning to Authenticate with Devise</h1> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="container padding40"> | ||
<div class="row"> | ||
<div class="eightcol"> | ||
The first step is to create a new rails application and bundle the devise gem inside it. Devise comes with a generator and it will configure the application and will walk you through the necessary steps. Run <code>rails g devise:install</code>. As instructed by the generator, you should add the configuration for mailer in the development environment, should add a root url, and should have the markup to display the flash messages. It's time to generate the model for representing the application users by running <code>rails g devise User</code>. The previous command will create the following. | ||
<ol> | ||
<li>User model</li> | ||
<li>Unit test file</li> | ||
<li>User fixture</li> | ||
<li>User migration file</li> | ||
<li>Route for users</li> | ||
</ol> | ||
|
||
<p class="para"> | ||
After including the devise modules in the model and the migration file migrate the database updates and run the rails application.` | ||
</p> | ||
|
||
|
||
</div> | ||
<div class="fourcol last"></div> | ||
</div> | ||
</div> |
32 changes: 32 additions & 0 deletions
32
source/_posts/2011-10-01-learning-to-authenticate-with-devise.markdown~
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
layout: post | ||
title: "Learning to Authenticate With Devise" | ||
date: 2011-10-01 19:37 | ||
comments: true | ||
categories: | ||
--- | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="sixcol"> </div> | ||
<div class="sixcol last"> | ||
<h1 class="main-head">Learning to Authenticate with Devise</h1> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
|
||
<div class="container padding40"> | ||
<div class="row"> | ||
<div class="eightcol"> | ||
The first step is to create a new rails application and bundle the devise gem inside it. Devise comes with a generator and it will configure the application and will walk you through the necessary steps. Run <code>rails g devise:install</code>. As instructed by the generator, you should add the configuration for mailer in the development environment, should add a root url, and should have the markup to display the flash messages. It's time to generate the model for representing the application users by running <code>rails g devise User</code>. The previous command will create the following. | ||
<ol> | ||
<li>User model</li> | ||
<li>Unit test file</li> | ||
<li>User fixture</li> | ||
<li>User migration file</li> | ||
<li>Route for users</li> | ||
</ol> | ||
</div> | ||
<div class="fourcol last"></div> | ||
</div> | ||
</div> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.