Skip to content

Commit e76af68

Browse files
committed
Rails 4.2
1 parent cb9e22f commit e76af68

File tree

1 file changed

+27
-34
lines changed

1 file changed

+27
-34
lines changed

README.textile

Lines changed: 27 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ h1. !http://railsapps.github.io/images/rails-36x36.jpg(Rails Devise)! Rails and
22

33
"!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
44

5-
Rails 4.1 example application that provides authentication and user management.
5+
Rails 4.2 example application that provides authentication and user management.
66

77
* "Devise":https://github.com/plataformatec/devise for user management and authentication
88
* "Bootstrap":http://getbootstrap.com/ or "Foundation":http://foundation.zurb.com/ front-end frameworks
@@ -68,8 +68,8 @@ h2. Dependencies
6868

6969
Before generating your application, you will need:
7070

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
7373

7474
See the article "Installing Rails":http://railsapps.github.io/installing-rails.html for instructions about setting up Rails and your development environment.
7575

@@ -97,7 +97,7 @@ h4. Generate
9797

9898
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.
9999

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:
101101

102102
<pre>
103103
$ 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
109109

110110
You'll see a prompt:
111111

112+
You'll see a prompt:
113+
112114
<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
117119
</pre>
118120

119121
Enter "1" to select *Build a RailsApps example application*. You'll see a prompt:
120122

121123
<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
129135
</pre>
130136

131137
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:
160166
2) RSpec with Capybara
161167
question Front-end framework?
162168
1) None
163-
2) Bootstrap 3.0
169+
2) Bootstrap 3.3
164170
3) Bootstrap 2.3
165-
4) Zurb Foundation 5.0
171+
4) Zurb Foundation 5.5
166172
5) Zurb Foundation 4.0
167173
6) Simple CSS
168174
setup The Devise 'forgot password' feature requires email.
@@ -185,9 +191,7 @@ The application generator template will ask you for additional preferences:
185191

186192
h4. Web Servers
187193

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.
191195

192196
h4. Database
193197

@@ -203,7 +207,7 @@ If you are a beginner, select "None."
203207

204208
h4. Front-end Framework
205209

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.
207211

208212
h4. Email
209213

@@ -296,7 +300,7 @@ Use Bundler to install the gem:
296300
$ bundle install
297301
</pre>
298302

299-
To create layout files for use with Zurb Foundation 5.0:
303+
To create layout files for use with Zurb Foundation 5.5:
300304

301305
<pre>
302306
$ rails generate layout:install foundation5
@@ -454,12 +458,7 @@ h4. From the Command Line
454458

455459
Alternatively, you can deploy from the command line.
456460

457-
You'll need to precompile assets before you commit to git and push to Heroku:
458-
459461
<pre>
460-
$ RAILS_ENV=production rake assets:precompile
461-
$ git add -A
462-
$ git commit -m "assets compiled for Heroku"
463462
$ git push origin master
464463
</pre>
465464

@@ -472,12 +471,6 @@ $ heroku config:add GMAIL_USERNAME='myname@gmail.com' GMAIL_PASSWORD='secret'
472471
$ heroku config:add DOMAIN_NAME='example.com'
473472
</pre>
474473

475-
Complete Heroku deployment with:
476-
477-
<pre>
478-
$ git push heroku master
479-
</pre>
480-
481474
See the "Tutorial for Rails on Heroku":http://railsapps.github.io/rails-heroku-tutorial.html for details.
482475

483476
h2. Adding a Name Attribute
@@ -525,7 +518,7 @@ h2. MIT License
525518

526519
"MIT License":http://www.opensource.org/licenses/mit-license
527520

528-
Copyright ©2014 Daniel Kehoe
521+
Copyright ©2014-15 Daniel Kehoe
529522

530523
h2. Useful Links
531524

0 commit comments

Comments
 (0)