You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.textile
+27-34Lines changed: 27 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ h1. !http://railsapps.github.io/images/rails-36x36.jpg(Rails Devise)! Rails and
2
2
3
3
"!https://www.herokucdn.com/deploy/button.png(Deploy to Heroku)!":https://heroku.com/deploy "!https://d3o0mnbgv6k92a.cloudfront.net/assets/hack-l-v1-3cc067e71372f6045e1949af9d96095b.png(Hack RailsApps on Nitrous.IO)!":https://www.nitrous.io/hack_button?source=embed&runtime=rails&repo=RailsApps%2Frails-devise&file_to_open=nitrous.txt
4
4
5
-
Rails 4.1 example application that provides authentication and user management.
5
+
Rails 4.2 example application that provides authentication and user management.
6
6
7
7
* "Devise":https://github.com/plataformatec/devise for user management and authentication
8
8
* "Bootstrap":http://getbootstrap.com/ or "Foundation":http://foundation.zurb.com/ front-end frameworks
@@ -68,8 +68,8 @@ h2. Dependencies
68
68
69
69
Before generating your application, you will need:
70
70
71
-
* The Ruby language - version 2.1
72
-
* The Rails gem - version 4.1
71
+
* The Ruby language - version 2.2
72
+
* The Rails gem - version 4.2
73
73
74
74
See the article "Installing Rails":http://railsapps.github.io/installing-rails.html for instructions about setting up Rails and your development environment.
75
75
@@ -97,7 +97,7 @@ h4. Generate
97
97
98
98
If you want to use the project as a starter application, use the "Rails Composer":http://railsapps.github.io/rails-composer/ tool to generate a new version of the example app. You'll be able to give it your own project name when you generate the app. Generating the application gives you additional options.
99
99
100
-
To build the example application, Rails 4.1 must be installed in your development environment. Run the command:
100
+
To build the example application, Rails 4.2 must be installed in your development environment. Run the command:
101
101
102
102
<pre>
103
103
$ rails new rails-devise -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
@@ -109,23 +109,29 @@ This creates a new Rails app named @rails-devise@ on your computer. You can use
109
109
110
110
You'll see a prompt:
111
111
112
+
You'll see a prompt:
113
+
112
114
<pre>
113
-
question Build a starter application?
114
-
1) Build a RailsApps example application
115
-
2) Contributed applications
116
-
3) Custom application
115
+
option Build a starter application?
116
+
1) Build a RailsApps example application
117
+
2) Contributed applications
118
+
3) Custom application
117
119
</pre>
118
120
119
121
Enter "1" to select *Build a RailsApps example application*. You'll see a prompt:
120
122
121
123
<pre>
122
-
question Starter apps for Rails 4.1. More to come.
123
-
1) learn-rails
124
-
2) rails-bootstrap
125
-
3) rails-foundation
126
-
4) rails-omniauth
127
-
5) rails-devise
128
-
6) rails-devise-pundit
124
+
option Choose a starter application.
125
+
1) learn-rails
126
+
2) rails-bootstrap
127
+
3) rails-foundation
128
+
4) rails-mailinglist-activejob
129
+
5) rails-omniauth
130
+
6) rails-devise
131
+
7) rails-devise-roles
132
+
8) rails-devise-pundit
133
+
9) rails-signup-download
134
+
10) rails-stripe-checkout
129
135
</pre>
130
136
131
137
Choose *rails-devise*. The Rails Composer tool may give you other options (other applications may have been added since these notes were written).
@@ -160,9 +166,9 @@ The application generator template will ask you for additional preferences:
160
166
2) RSpec with Capybara
161
167
question Front-end framework?
162
168
1) None
163
-
2) Bootstrap 3.0
169
+
2) Bootstrap 3.3
164
170
3) Bootstrap 2.3
165
-
4) Zurb Foundation 5.0
171
+
4) Zurb Foundation 5.5
166
172
5) Zurb Foundation 4.0
167
173
6) Simple CSS
168
174
setup The Devise 'forgot password' feature requires email.
@@ -185,9 +191,7 @@ The application generator template will ask you for additional preferences:
185
191
186
192
h4. Web Servers
187
193
188
-
We recommend Thin in development for speed and less noise in the log files.
189
-
190
-
If you plan to deploy to Heroku, select Thin as your production webserver. Unicorn is recommended by Heroku but configuration is more complex.
194
+
If you plan to deploy to Heroku, select Unicorn as your production webserver. Unicorn is recommended by Heroku.
191
195
192
196
h4. Database
193
197
@@ -203,7 +207,7 @@ If you are a beginner, select "None."
203
207
204
208
h4. Front-end Framework
205
209
206
-
The example in the GitHub repository was built without a front-end framework. Use Zurb Foundation 5.0 or Bootstrap 3.0 if you like. Choosing either Foundation or Bootstrap will automatically install Devise views with attractive styling.
210
+
The example in the GitHub repository was built without a front-end framework. Use Zurb Foundation 5.5 or Bootstrap 3.3 if you like. Choosing either Foundation or Bootstrap will automatically install Devise views with attractive styling.
207
211
208
212
h4. Email
209
213
@@ -296,7 +300,7 @@ Use Bundler to install the gem:
296
300
$ bundle install
297
301
</pre>
298
302
299
-
To create layout files for use with Zurb Foundation 5.0:
303
+
To create layout files for use with Zurb Foundation 5.5:
300
304
301
305
<pre>
302
306
$ rails generate layout:install foundation5
@@ -454,12 +458,7 @@ h4. From the Command Line
454
458
455
459
Alternatively, you can deploy from the command line.
456
460
457
-
You'll need to precompile assets before you commit to git and push to Heroku:
0 commit comments