Learn Ruby On Rails For Web Development: Learn Rails The Fast And Easy Way by John Elder
Author:John Elder [Elder, John]
Language: eng
Format: epub
Publisher: Codemy.com
Published: 2015-01-18T22:00:00+00:00
The only thing left to do is add the command from step five into the terminal, so let's go ahead and do that now:
1 $ rails g devise:views
2
This runs the generator for the devise views. Notice in the past we've always written out generate commands, like this:
1 $ rails generate devise:views
2
Just typing "g" instead of generate is shorthand and completely acceptable.
After you run this command, check out your /app/views/ directory. You should see a new folder named "devise". That folder contains a bunch of folders and all the new pages that Devise has automatically created to handle stuff like logging in, logging out, editing user profiles, resetting passwords, and stuff like that. Check it out!
The terminal should have displayed a bunch of text too...that's a breakdown of what Devise just added. So you can eyeball it. See all those pages? For instance, let's look at /app/views/devise/registrations/new.html.erb
I'm guessing that's the page that allows people to register for your site (create a 'new' registration). Open it in the text editor and you'll see a "Sign Up" tag right at the top of the file.
How about: app/views/devise/sessions/new.html.erb? That's the page that allows people to log in. When someone logs into your web site they are essentially creating a session. Logging in is the act of creating a new session.
Similarly, logging out is the act of deleting a session.
Devise has created a BUNCH of stuff, and to tell you the truth, we aren't even going to use most of it. So don't get overwhelmed.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Hello! Python by Anthony Briggs(9365)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9337)
The Mikado Method by Ola Ellnestam Daniel Brolund(9300)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7845)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7398)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7307)
Grails in Action by Glen Smith Peter Ledbrook(7291)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7111)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5951)
Kotlin in Action by Dmitry Jemerov(4633)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3852)
Functional Programming in JavaScript by Mantyla Dan(3719)
Learning Java by Patrick Niemeyer & Daniel Leuck(2867)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2832)
Mastering Python for Finance by Weiming James Ma;(2825)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2580)
Mastering Java 9 by Dr. Edward Lavieri(2569)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2555)
Learning Concurrency in Python by Elliot Forbes(2547)