Skip to content

Commit d13020f

Browse files
committed
conform to app generated by version 1.4.6 of rails_apps_composer
1 parent 1d46fe0 commit d13020f

File tree

7 files changed

+56
-27
lines changed

7 files changed

+56
-27
lines changed

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ group :assets do
88
end
99
gem 'jquery-rails'
1010
gem "rspec-rails", ">= 2.9.0.rc2", :group => [:development, :test]
11-
gem "factory_girl_rails", ">= 3.0.0", :group => [:development, :test]
11+
gem "factory_girl_rails", ">= 3.1.0", :group => [:development, :test]
1212
gem "email_spec", ">= 1.2.1", :group => :test
1313
gem "cucumber-rails", ">= 1.3.0", :group => :test
1414
gem "capybara", ">= 1.1.2", :group => :test

Gemfile.lock

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ GEM
4747
coffee-script (2.2.0)
4848
coffee-script-source
4949
execjs
50-
coffee-script-source (1.2.0)
50+
coffee-script-source (1.3.1)
5151
cucumber (1.1.9)
5252
builder (>= 2.1.2)
5353
diff-lcs (>= 1.1.2)
@@ -71,23 +71,25 @@ GEM
7171
erubis (2.7.0)
7272
execjs (1.3.0)
7373
multi_json (~> 1.0)
74-
factory_girl (3.0.0)
74+
factory_girl (3.1.0)
7575
activesupport (>= 3.0.0)
76-
factory_girl_rails (3.0.0)
77-
factory_girl (~> 3.0.0)
76+
factory_girl_rails (3.1.0)
77+
factory_girl (~> 3.1.0)
7878
railties (>= 3.0.0)
7979
ffi (1.0.11)
8080
gherkin (2.9.3)
8181
json (>= 1.4.6)
8282
hike (1.2.1)
8383
i18n (0.6.0)
8484
journey (1.0.3)
85-
jquery-rails (2.0.1)
85+
jquery-rails (2.0.2)
8686
railties (>= 3.2.0, < 5.0)
8787
thor (~> 0.14)
8888
json (1.6.6)
8989
launchy (2.1.0)
9090
addressable (~> 2.2.6)
91+
libwebsocket (0.1.3)
92+
addressable
9193
mail (2.4.4)
9294
i18n (>= 0.4.0)
9395
mime-types (~> 1.16)
@@ -127,23 +129,24 @@ GEM
127129
rspec-expectations (~> 2.9.0)
128130
rspec-mocks (~> 2.9.0)
129131
rspec-core (2.9.0)
130-
rspec-expectations (2.9.0)
132+
rspec-expectations (2.9.1)
131133
diff-lcs (~> 1.1.3)
132134
rspec-mocks (2.9.0)
133135
rspec-rails (2.9.0)
134136
actionpack (>= 3.0)
135137
activesupport (>= 3.0)
136138
railties (>= 3.0)
137139
rspec (~> 2.9.0)
138-
rubyzip (0.9.6.1)
140+
rubyzip (0.9.7)
139141
sass (3.1.15)
140142
sass-rails (3.2.5)
141143
railties (~> 3.2.0)
142144
sass (>= 3.1.10)
143145
tilt (~> 1.3)
144-
selenium-webdriver (2.20.0)
146+
selenium-webdriver (2.21.0)
145147
childprocess (>= 0.2.5)
146148
ffi (~> 1.0)
149+
libwebsocket (~> 0.1.3)
147150
multi_json (~> 1.0)
148151
rubyzip
149152
sprockets (2.1.2)
@@ -157,7 +160,7 @@ GEM
157160
treetop (1.4.10)
158161
polyglot
159162
polyglot (>= 0.3.1)
160-
tzinfo (0.3.32)
163+
tzinfo (0.3.33)
161164
uglifier (1.2.4)
162165
execjs (>= 0.3.0)
163166
multi_json (>= 1.0.2)
@@ -176,7 +179,7 @@ DEPENDENCIES
176179
database_cleaner (>= 0.7.2)
177180
devise (>= 2.1.0.rc)
178181
email_spec (>= 1.2.1)
179-
factory_girl_rails (>= 3.0.0)
182+
factory_girl_rails (>= 3.1.0)
180183
jquery-rails
181184
launchy (>= 2.1.0)
182185
rails (= 3.2.3)

README.textile

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,28 +83,39 @@ The @$@ character indicates a shell prompt; don't include it when you run the co
8383

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

86-
The application generator templates will ask you for various preferences:
87-
88-
* Would you like to use "Haml":http://en.wikipedia.org/wiki/Haml instead of ERB?
89-
* Would you like to use "RSpec":http://rspec.info/ instead of TestUnit?
90-
* Would you like to use "factory_girl":https://github.com/thoughtbot/factory_girl for test fixtures with RSpec?
91-
* Would you like to use "machinist":https://github.com/notahat/machinist for test fixtures with RSpec?
92-
* Would you like to use "Cucumber":http://cukes.info/ for your BDD?
93-
* Would you like to use "Guard":http://intridea.com/posts/hire-a-guard-for-your-project to automate your workflow?
94-
* Would you like the app to use a Gmail account to send email?
86+
The application generator templates will ask you for various preferences.
87+
88+
To reproduce the example application exactly as found in the repository, make the following selections:
89+
90+
* Would you like to use "Haml":http://en.wikipedia.org/wiki/Haml instead of ERB? *no*
91+
* Would you like to use "RSpec":http://rspec.info/ instead of TestUnit? *yes*
92+
* Would you like to use "factory_girl":https://github.com/thoughtbot/factory_girl for test fixtures with RSpec? *yes*
93+
* Would you like to use "machinist":https://github.com/notahat/machinist for test fixtures with RSpec? *no*
94+
* Would you like to use "Cucumber":http://cukes.info/ for your BDD? *yes*
95+
* Would you like to use "Guard":http://intridea.com/posts/hire-a-guard-for-your-project to automate your workflow? *no*
96+
* Would you like the app to use a Gmail account to send email? *yes*
9597
* Would you like to use "Devise":http://github.com/plataformatec/devise for authentication?
9698
## No
97-
## Devise with default modules
99+
## Devise with default modules *#2*
98100
## Devise with Confirmable module
99101
## Devise with Confirmable and Invitable modules
102+
* Would you like to manage authorization with CanCan & Rolify? *no*
100103
* Which front-end framework would you like for HTML5 and CSS3?
101-
## None
104+
## None *#1*
102105
## "Zurb Foundation":http://foundation.zurb.com/
103-
## "Twitter Bootstrap":http://twitter.github.com/bootstrap/
106+
## "Twitter Bootstrap":http://twitter.github.com/bootstrap/ (less)
107+
## "Twitter Bootstrap":http://twitter.github.com/bootstrap/ (sass)
104108
## "Skeleton":http://www.getskeleton.com/
105109
## Normalize CSS for consistent styling
106-
* Would you like to use "rails-footnotes":https://github.com/josevalim/rails-footnotes during development?
107-
* Would you like to set a robots.txt file to ban spiders?
110+
* Which form gem would you like?
111+
## None *#1*
112+
## simple form
113+
## simple form (bootstrap)
114+
* Would you like to use "rails-footnotes":https://github.com/josevalim/rails-footnotes during development? *no*
115+
* Would you like to set a robots.txt file to ban spiders? *yes*
116+
* Would you like to add 'will_paginate' for pagination? *no*
117+
118+
You can choose other selections if you don't care about matching the example application exactly.
108119

109120
h4. Use "Recipes" to Customize an Application Template
110121

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
class UsersController < ApplicationController
22
before_filter :authenticate_user!
33

4+
def index
5+
@users = User.all
6+
end
7+
48
def show
59
@user = User.find(params[:id])
6-
710
end
11+
812
end

app/views/users/index.html.erb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<h1>Users#index</h1>
2+
<p>Find me in app/views/users/index.html.erb</p>
3+
<ul class="users">
4+
<% @users.each do |user| %>
5+
<li>
6+
<%= link_to user.name, user %> signed up <%= user.created_at.to_date %>
7+
</li>
8+
<% end %>
9+
</ul>

config/routes.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
end
55
root :to => "home#index"
66
devise_for :users
7-
resources :users, :only => :show
7+
resources :users, :only => [:show, :index]
88
end

db/seeds.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
puts 'SETTING UP DEFAULT USER LOGIN'
99
user = User.create! :name => 'First User', :email => 'user@example.com', :password => 'please', :password_confirmation => 'please'
1010
puts 'New user created: ' << user.name
11+
user2 = User.create! :name => 'Second User', :email => 'user2@example.com', :password => 'please', :password_confirmation => 'please'
12+
puts 'New user created: ' << user2.name

0 commit comments

Comments
 (0)