Skip to content

Commit 52fb0f6

Browse files
committed
update to Rails 3.2
1 parent 58afa04 commit 52fb0f6

35 files changed

+346
-285
lines changed

Gemfile

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
source 'http://rubygems.org'
2-
gem 'rails', '3.1.3'
1+
source 'https://rubygems.org'
2+
gem 'rails', '3.2.0'
33
gem 'sqlite3'
44
group :assets do
5-
gem 'sass-rails', '~> 3.1.5'
6-
gem 'coffee-rails', '~> 3.1.1'
5+
gem 'sass-rails', '~> 3.2.3'
6+
gem 'coffee-rails', '~> 3.2.1'
77
gem 'uglifier', '>= 1.0.3'
88
end
99
gem 'jquery-rails'
10-
gem "rspec-rails", ">= 2.8.0.rc1", :group => [:development, :test]
11-
gem "factory_girl_rails", ">= 1.4.0", :group => :test
12-
gem "cucumber-rails", ">= 1.2.0", :group => :test
10+
gem "rspec-rails", ">= 2.8.1", :group => [:development, :test]
11+
gem "factory_girl_rails", ">= 1.6.0", :group => :test
12+
gem "cucumber-rails", ">= 1.2.1", :group => :test
1313
gem "capybara", ">= 1.1.2", :group => :test
14-
gem "database_cleaner", ">= 0.7.0", :group => :test
14+
gem "database_cleaner", ">= 0.7.1", :group => :test
1515
gem "launchy", ">= 2.0.5", :group => :test
16-
gem "devise", ">= 1.5.0"
16+
gem "devise", ">= 2.0.0"

README.textile

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
1-
h1. Rails 3.1 + Devise + RSpec + Cucumber
1+
h1. Rails 3.2 Devise RSpec Cucumber
22

3-
This is an example application for Rails 3.1.x that shows how to use "Devise":http://github.com/plataformatec/devise with "RSpec":http://rspec.info/ and "Cucumber":http://cukes.info/. Devise gives you ready-made authentication and user management. RSpec is a popular alternative to the Test::Unit testing framework. Cucumber is often used with RSpec for Behaviour Driven Development.
3+
This is an example application for Rails 3.2 that shows how to use "Devise":http://github.com/plataformatec/devise with "RSpec":http://rspec.info/ and "Cucumber":http://cukes.info/. Devise gives you ready-made authentication and user management. RSpec is a popular alternative to the Test::Unit testing framework. Cucumber is often used with RSpec for Behaviour Driven Development.
44

55
Best of all, there's a "detailed tutorial":https://github.com/RailsApps/rails3-devise-rspec-cucumber/wiki/Tutorial (walk-through) to show how it's built.
66

77
You can clone this app or generate a new Rails application using this app as a template.
88

99
Any issues? Please create a "GitHub issue":http://github.com/RailsApps/rails3-devise-rspec-cucumber/issues.
1010

11-
h2. !http://twitter-badges.s3.amazonaws.com/t_logo-a.png(Follow on Twitter)!:http://www.twitter.com/rails_apps Follow on Twitter !http://railsapps.github.com/images/mailing-list-icon.jpg(Join the Mailing List)!:http://eepurl.com/dQx3o Join the Mailing List
11+
h2. !http://twitter-badges.s3.amazonaws.com/t_logo-a.png(Follow on Twitter)!:http://www.twitter.com/rails_apps Follow on Twitter
1212

1313
Follow the project on Twitter: "@rails_apps":http://twitter.com/rails_apps. Please tweet some praise if you like what you've found.
1414

15-
<a href="http://eepurl.com/dQx3o">Join the email list</a> (low volume, announcements only) for project updates and my tips about Rails resources.
16-
1715
h2. !http://railsapps.github.com/images/rails-36x36.jpg(Tutorial)! Tutorial
1816

19-
A complete walkthrough tutorial for Rails 3.1 is available on the GitHub wiki:
17+
A complete walkthrough tutorial is available on the GitHub wiki:
2018

2119
h4. "View the Tutorial":https://github.com/RailsApps/rails3-devise-rspec-cucumber/wiki/Tutorial
2220

@@ -38,16 +36,10 @@ h2. Dependencies
3836

3937
Before generating your application, you will need:
4038

41-
* The Ruby language (version 1.9.2)
42-
** @$ ruby -v@
43-
* Rails 3.1
44-
** @$ rails -v@
45-
* Rake 0.9.2
46-
** @$ rake --version@
47-
48-
You must update the standard Ruby installation from Rake 0.8.7 to Rake 0.9.2 before using the application templates to generate a new Rails app.
39+
* The Ruby language (version 1.9.3)
40+
* Rails 3.2
4941

50-
See "Installing Rails 3.1":http://railsapps.github.com/installing-rails-3-1.html and "Managing Rails Versions and Gems":http://railsapps.github.com/managing-rails-versions-gems.html for detailed instructions and advice.
42+
See "Installing Rails 3.2":http://railsapps.github.com/installing-rails.html for detailed instructions and advice.
5143

5244
h2. Getting the Application
5345

@@ -67,18 +59,14 @@ You can use an application template to generate a new version of the example app
6759

6860
To build the "rails3-devise-rspec-cucumber" example application, run the command:
6961

70-
@$ rails new myapp -m https://github.com/RailsApps/rails3-application-templates/raw/master/rails3-devise-rspec-cucumber-template.rb -T@
62+
@rails new myapp -m https://github.com/RailsApps/rails3-application-templates/raw/master/rails3-devise-rspec-cucumber-template.rb -T@
7163

72-
Use the @-T@ flag to skip Test::Unit files. Add the @-J@ flag to skip Prototype files for Rails 3.0 (not needed for Rails 3.1).
73-
74-
bq. You MUST be using Rails 3.0.4 or newer. Generating a Rails application from an “HTTPS” URL does not work in Rails 3.0.3 and earlier versions.
64+
Use the @-T@ flag to skip Test::Unit files.
7565

7666
This creates a new Rails app (with the name @myapp@) on your computer.
7767

7868
The application generator template will ask you for your preferences:
7969

80-
* Would you like to use jQuery?
81-
* Would you like to use jQuery UI?
8270
* Would you like to use Haml instead of ERB?
8371
* Would you like to use RSpec instead of TestUnit?
8472
* Would you like to use factory_girl for test fixtures with RSpec?
@@ -91,6 +79,12 @@ The application generator template will ask you for your preferences:
9179
* Completely reset all CSS to eliminate styling?
9280
* Would you like to set a robots.txt file to ban spiders?
9381
* Would you like to use ‘rails-footnotes’ during development?
82+
* Which front-end framework would you like for HTML5 and CSS3?
83+
## None
84+
## Zurb Foundation
85+
## Twitter Bootstrap
86+
## Skeleton
87+
## Normalize CSS for consistent styling
9488

9589
h4. Use "Recipes" to Customize an Application Template
9690

@@ -114,10 +108,6 @@ The application uses the following gems:
114108
* "capybara":http://rubygems.org/gems/capybara
115109
* "devise":http://rubygems.org/gems/devise
116110

117-
See an example "Rails 3.1.3 Gemfile":http://railsapps.github.com/rails-3-1-3-example-gemfile.html.
118-
119-
See "Managing Rails Versions and Gems":http://railsapps.github.com/managing-rails-versions-gems.html for advice and details.
120-
121111
h4. Install the Required Gems
122112

123113
Install the required gems on your computer:
@@ -219,6 +209,12 @@ h4. Issues
219209

220210
Please create a "GitHub issue":http://github.com/RailsApps/rails3-devise-rspec-cucumber/issues if you identify any problems or have suggestions for improvements.
221211

212+
h4. Where to Get Help
213+
214+
Your best source for help with problems is "Stack Overflow":http://stackoverflow.com/questions/tagged/ruby-on-rails-3. Your issue may have been encountered and addressed by others.
215+
216+
You can also try "Rails Hotline":http://www.railshotline.com/, a free telephone hotline for Rails help staffed by volunteers.
217+
222218
h2. Contributing
223219

224220
If you make improvements to this application, please share with others.
Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
// This is a manifest file that'll be compiled into including all the files listed below.
2-
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3-
// be included in the compiled file accessible from http://example.com/assets/application.js
1+
// This is a manifest file that'll be compiled into application.js, which will include all the files
2+
// listed below.
3+
//
4+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
6+
//
47
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
58
// the compiled file.
69
//
10+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
11+
// GO AFTER THE REQUIRES BELOW.
12+
//
713
//= require jquery
814
//= require jquery_ujs
915
//= require_tree .

app/assets/stylesheets/application.css

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/*
2+
* This is a manifest file that'll be compiled into application.css, which will include all the files
3+
* listed below.
4+
*
5+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
7+
*
8+
* You're free to add application-wide styles to this file and they'll appear at the top of the
9+
* compiled file, but it's generally better to create a new file per style scope.
10+
*
11+
*= require_self
12+
*= require_tree .
13+
*/
14+
15+
header nav ul {
16+
list-style: none;
17+
margin: 0 0 2em;
18+
padding: 0;
19+
}
20+
header nav ul li {
21+
display: inline;
22+
}
23+
#flash_notice, #flash_alert {
24+
padding: 5px 8px;
25+
margin: 10px 0;
26+
}
27+
#flash_notice {
28+
background-color: #CFC;
29+
border: solid 1px #6C6;
30+
}
31+
#flash_alert {
32+
background-color: #FCC;
33+
border: solid 1px #C66;
34+
}
35+

app/controllers/users_controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@ def show
55
@user = User.find(params[:id])
66

77
end
8-
98
end

app/views/devise/confirmations/new.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
<div><%= f.submit "Resend confirmation instructions" %></div>
1010
<% end %>
1111

12-
<%= render :partial => "devise/shared/links" %>
12+
<%= render "links" %>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<p>Welcome <%= @resource.email %>!</p>
22

3-
<p>You can confirm your account through the link below:</p>
3+
<p>You can confirm your account email through the link below:</p>
44

55
<p><%= link_to 'Confirm my account', confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) %></p>

app/views/devise/passwords/edit.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
<div><%= f.submit "Change my password" %></div>
1414
<% end %>
1515

16-
<%= render :partial => "devise/shared/links" %>
16+
<%= render "links" %>

0 commit comments

Comments
 (0)