genderize 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: genderize
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bodacious
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-06 00:00:00.000000000 Z
11
+ date: 2013-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: 3.2.13
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: 3.2.13
27
27
  - !ruby/object:Gem::Dependency
@@ -62,6 +62,7 @@ extensions: []
62
62
  extra_rdoc_files: []
63
63
  files:
64
64
  - config/locales/genderize.en.yml
65
+ - config/locales/genderize.es.yml
65
66
  - config/routes.rb
66
67
  - lib/genderize/engine.rb
67
68
  - lib/genderize/gender.rb
@@ -73,7 +74,6 @@ files:
73
74
  - MIT-LICENSE
74
75
  - Rakefile
75
76
  - README.md
76
- - spec/dummy/app/controllers/users_controller.rb
77
77
  - spec/dummy/app/helpers/users_helper.rb
78
78
  - spec/dummy/app/models/user.rb
79
79
  - spec/dummy/app/views/users/_form.html.erb
@@ -101,20 +101,11 @@ files:
101
101
  - spec/dummy/db/migrate/20130506080641_create_users.rb
102
102
  - spec/dummy/db/schema.rb
103
103
  - spec/dummy/db/test.sqlite3
104
- - spec/dummy/log/development.log
105
104
  - spec/dummy/log/test.log
106
105
  - spec/dummy/Rakefile
107
106
  - spec/dummy/README.rdoc
108
107
  - spec/dummy/script/rails
109
- - spec/dummy/spec/controllers/users_controller_spec.rb
110
- - spec/dummy/spec/helpers/users_helper_spec.rb
111
108
  - spec/dummy/spec/models/user_spec.rb
112
- - spec/dummy/spec/requests/users_spec.rb
113
- - spec/dummy/spec/routing/users_routing_spec.rb
114
- - spec/dummy/spec/views/users/edit.html.erb_spec.rb
115
- - spec/dummy/spec/views/users/index.html.erb_spec.rb
116
- - spec/dummy/spec/views/users/new.html.erb_spec.rb
117
- - spec/dummy/spec/views/users/show.html.erb_spec.rb
118
109
  - spec/genderize_spec.rb
119
110
  - spec/lib/gender_spec.rb
120
111
  - spec/spec_helper.rb
@@ -139,12 +130,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
130
  version: '0'
140
131
  requirements: []
141
132
  rubyforge_project:
142
- rubygems_version: 2.0.3
133
+ rubygems_version: 2.1.11
143
134
  signing_key:
144
135
  specification_version: 4
145
136
  summary: A helpful class for gender-specific models in Ruby applications
146
137
  test_files:
147
- - spec/dummy/app/controllers/users_controller.rb
148
138
  - spec/dummy/app/helpers/users_helper.rb
149
139
  - spec/dummy/app/models/user.rb
150
140
  - spec/dummy/app/views/users/_form.html.erb
@@ -172,20 +162,11 @@ test_files:
172
162
  - spec/dummy/db/migrate/20130506080641_create_users.rb
173
163
  - spec/dummy/db/schema.rb
174
164
  - spec/dummy/db/test.sqlite3
175
- - spec/dummy/log/development.log
176
165
  - spec/dummy/log/test.log
177
166
  - spec/dummy/Rakefile
178
167
  - spec/dummy/README.rdoc
179
168
  - spec/dummy/script/rails
180
- - spec/dummy/spec/controllers/users_controller_spec.rb
181
- - spec/dummy/spec/helpers/users_helper_spec.rb
182
169
  - spec/dummy/spec/models/user_spec.rb
183
- - spec/dummy/spec/requests/users_spec.rb
184
- - spec/dummy/spec/routing/users_routing_spec.rb
185
- - spec/dummy/spec/views/users/edit.html.erb_spec.rb
186
- - spec/dummy/spec/views/users/index.html.erb_spec.rb
187
- - spec/dummy/spec/views/users/new.html.erb_spec.rb
188
- - spec/dummy/spec/views/users/show.html.erb_spec.rb
189
170
  - spec/genderize_spec.rb
190
171
  - spec/lib/gender_spec.rb
191
172
  - spec/spec_helper.rb
@@ -1,83 +0,0 @@
1
- class UsersController < ActionController::Base
2
- # GET /users
3
- # GET /users.json
4
- def index
5
- @users = User.all
6
-
7
- respond_to do |format|
8
- format.html # index.html.erb
9
- format.json { render json: @users }
10
- end
11
- end
12
-
13
- # GET /users/1
14
- # GET /users/1.json
15
- def show
16
- @user = User.find(params[:id])
17
-
18
- respond_to do |format|
19
- format.html # show.html.erb
20
- format.json { render json: @user }
21
- end
22
- end
23
-
24
- # GET /users/new
25
- # GET /users/new.json
26
- def new
27
- @user = User.new
28
-
29
- respond_to do |format|
30
- format.html # new.html.erb
31
- format.json { render json: @user }
32
- end
33
- end
34
-
35
- # GET /users/1/edit
36
- def edit
37
- @user = User.find(params[:id])
38
- end
39
-
40
- # POST /users
41
- # POST /users.json
42
- def create
43
- @user = User.new(params[:user])
44
-
45
- respond_to do |format|
46
- if @user.save
47
- format.html { redirect_to @user, notice: 'User was successfully created.' }
48
- format.json { render json: @user, status: :created, location: @user }
49
- else
50
- format.html { render action: "new" }
51
- format.json { render json: @user.errors, status: :unprocessable_entity }
52
- end
53
- end
54
- end
55
-
56
- # PUT /users/1
57
- # PUT /users/1.json
58
- def update
59
- @user = User.find(params[:id])
60
-
61
- respond_to do |format|
62
- if @user.update_attributes(params[:user])
63
- format.html { redirect_to @user, notice: 'User was successfully updated.' }
64
- format.json { head :no_content }
65
- else
66
- format.html { render action: "edit" }
67
- format.json { render json: @user.errors, status: :unprocessable_entity }
68
- end
69
- end
70
- end
71
-
72
- # DELETE /users/1
73
- # DELETE /users/1.json
74
- def destroy
75
- @user = User.find(params[:id])
76
- @user.destroy
77
-
78
- respond_to do |format|
79
- format.html { redirect_to users_url }
80
- format.json { head :no_content }
81
- end
82
- end
83
- end
@@ -1,321 +0,0 @@
1
- Connecting to database specified by database.yml
2
-
3
-
4
- Started GET "/" for 127.0.0.1 at 2013-05-06 09:06:23 +0100
5
-
6
- ActionController::RoutingError (No route matches [GET] "/"):
7
- actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
8
- actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
9
- railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
10
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
11
- activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
12
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
13
- actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
14
- rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
15
- rack (1.4.5) lib/rack/runtime.rb:17:in `call'
16
- activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
17
- rack (1.4.5) lib/rack/lock.rb:15:in `call'
18
- actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
19
- railties (3.2.13) lib/rails/engine.rb:479:in `call'
20
- railties (3.2.13) lib/rails/application.rb:223:in `call'
21
- rack (1.4.5) lib/rack/content_length.rb:14:in `call'
22
- railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
23
- rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
24
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
25
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
26
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
27
-
28
-
29
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (2.2ms)
30
- Connecting to database specified by database.yml
31
- Connecting to database specified by database.yml
32
-  (0.1ms) select sqlite_version(*)
33
-  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
34
-  (3.1ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
35
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
36
- Migrating to CreateUsers (20130506080641)
37
-  (0.0ms) begin transaction
38
-  (0.0ms) rollback transaction
39
- Connecting to database specified by database.yml
40
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
41
- Migrating to CreateUsers (20130506080641)
42
-  (0.0ms) select sqlite_version(*)
43
-  (0.0ms) begin transaction
44
-  (0.5ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(20) NOT NULL, "gender" varchar(1) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
45
-  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130506080641')
46
-  (54.8ms) commit transaction
47
-  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
48
- Connecting to database specified by database.yml
49
- Connecting to database specified by database.yml
50
-  (1.0ms) select sqlite_version(*)
51
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
52
-  (0.2ms) select sqlite_version(*)
53
-  (5.2ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(20) NOT NULL, "gender" varchar(1) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
54
-  (3.1ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
55
-  (4.9ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
56
-  (0.1ms) SELECT version FROM "schema_migrations"
57
-  (3.5ms) INSERT INTO "schema_migrations" (version) VALUES ('20130506080641')
58
- Connecting to database specified by database.yml
59
- Connecting to database specified by database.yml
60
- Connecting to database specified by database.yml
61
- Connecting to database specified by database.yml
62
- Connecting to database specified by database.yml
63
-  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" 
64
-  (0.2ms) select sqlite_version(*)
65
-  (150.1ms) CREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(20) NOT NULL, "gender" varchar(1) NOT NULL, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL) 
66
-  (3.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
67
-  (3.2ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
68
-  (0.1ms) SELECT version FROM "schema_migrations"
69
-  (3.7ms) INSERT INTO "schema_migrations" (version) VALUES ('20130506080641')
70
- Connecting to database specified by database.yml
71
-
72
-
73
- Started GET "/" for 127.0.0.1 at 2013-05-06 17:43:04 +0100
74
-
75
- ActionController::RoutingError (No route matches [GET] "/"):
76
- actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
77
- actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
78
- railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
79
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
80
- activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
81
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
82
- actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
83
- rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
84
- rack (1.4.5) lib/rack/runtime.rb:17:in `call'
85
- activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
86
- rack (1.4.5) lib/rack/lock.rb:15:in `call'
87
- actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
88
- railties (3.2.13) lib/rails/engine.rb:479:in `call'
89
- railties (3.2.13) lib/rails/application.rb:223:in `call'
90
- rack (1.4.5) lib/rack/content_length.rb:14:in `call'
91
- railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
92
- rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
93
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
94
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
95
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
96
-
97
-
98
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (4.6ms)
99
- Connecting to database specified by database.yml
100
- Connecting to database specified by database.yml
101
-
102
-
103
- Started GET "/" for 127.0.0.1 at 2013-05-06 17:54:07 +0100
104
-
105
- ActionController::RoutingError (No route matches [GET] "/"):
106
- actionpack (3.2.13) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
107
- actionpack (3.2.13) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
108
- railties (3.2.13) lib/rails/rack/logger.rb:32:in `call_app'
109
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `block in call'
110
- activesupport (3.2.13) lib/active_support/tagged_logging.rb:22:in `tagged'
111
- railties (3.2.13) lib/rails/rack/logger.rb:16:in `call'
112
- actionpack (3.2.13) lib/action_dispatch/middleware/request_id.rb:22:in `call'
113
- rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
114
- rack (1.4.5) lib/rack/runtime.rb:17:in `call'
115
- activesupport (3.2.13) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
116
- rack (1.4.5) lib/rack/lock.rb:15:in `call'
117
- actionpack (3.2.13) lib/action_dispatch/middleware/static.rb:63:in `call'
118
- railties (3.2.13) lib/rails/engine.rb:479:in `call'
119
- railties (3.2.13) lib/rails/application.rb:223:in `call'
120
- rack (1.4.5) lib/rack/content_length.rb:14:in `call'
121
- railties (3.2.13) lib/rails/rack/log_tailer.rb:17:in `call'
122
- rack (1.4.5) lib/rack/handler/webrick.rb:59:in `service'
123
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
124
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
125
- /Users/Gavin/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
126
-
127
-
128
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
129
- Connecting to database specified by database.yml
130
- SQLite3::ConstraintException: users.name may not be NULL: INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?)
131
- Connecting to database specified by database.yml
132
- Connecting to database specified by database.yml
133
-
134
-
135
- Started GET "/users" for 127.0.0.1 at 2013-05-06 17:57:03 +0100
136
-
137
- ActionController::RoutingError (uninitialized constant ApplicationController):
138
- app/controllers/users_controller.rb:1:in `<top (required)>'
139
-
140
-
141
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (1.2ms)
142
-
143
-
144
- Started GET "/users" for 127.0.0.1 at 2013-05-06 17:57:35 +0100
145
- Processing by UsersController#index as HTML
146
- User Load (0.1ms) SELECT "users".* FROM "users" 
147
- Rendered users/index.html.erb (11.1ms)
148
- Completed 500 Internal Server Error in 36ms
149
-
150
- ActionView::Template::Error (undefined method `new' for #<User:0x007ff260df8ea0>):
151
- 12:
152
- 13: <% @users.each do |user| %>
153
- 14: <tr>
154
- 15: <td><%= user.new %></td>
155
- 16: <td><%= user.index %></td>
156
- 17: <td><%= user.show %></td>
157
- 18: <td><%= link_to 'Show', user %></td>
158
- app/views/users/index.html.erb:15:in `block in _app_views_users_index_html_erb__195431217160685788_70339491875360'
159
- app/views/users/index.html.erb:13:in `each'
160
- app/views/users/index.html.erb:13:in `_app_views_users_index_html_erb__195431217160685788_70339491875360'
161
- app/controllers/users_controller.rb:7:in `index'
162
-
163
-
164
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
165
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.2ms)
166
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (13.4ms)
167
-
168
-
169
- Started GET "/users" for 127.0.0.1 at 2013-05-06 17:58:29 +0100
170
- Processing by UsersController#index as HTML
171
- User Load (0.1ms) SELECT "users".* FROM "users"
172
- Rendered users/index.html.erb (1.2ms)
173
- Completed 500 Internal Server Error in 4ms
174
-
175
- ActionView::Template::Error (undefined method `new' for #<User:0x007ff260c4bc88>):
176
- 12:
177
- 13: <% @users.each do |user| %>
178
- 14: <tr>
179
- 15: <td><%= user.new %></td>
180
- 16: <td><%= user.index %></td>
181
- 17: <td><%= user.show %></td>
182
- 18: <td><%= link_to 'Show', user %></td>
183
- app/views/users/index.html.erb:15:in `block in _app_views_users_index_html_erb__195431217160685788_70339491875360'
184
- app/views/users/index.html.erb:13:in `each'
185
- app/views/users/index.html.erb:13:in `_app_views_users_index_html_erb__195431217160685788_70339491875360'
186
- app/controllers/users_controller.rb:7:in `index'
187
-
188
-
189
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.1ms)
190
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
191
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (6.5ms)
192
-
193
-
194
- Started GET "/users" for 127.0.0.1 at 2013-05-06 17:58:57 +0100
195
- Processing by UsersController#index as HTML
196
- User Load (0.1ms) SELECT "users".* FROM "users" 
197
- Rendered users/index.html.erb (3.1ms)
198
- Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.1ms)
199
-
200
-
201
- Started GET "/users/new" for 127.0.0.1 at 2013-05-06 17:59:00 +0100
202
- Processing by UsersController#new as HTML
203
- Rendered users/_form.html.erb (7.7ms)
204
- Rendered users/new.html.erb (88.1ms)
205
- Completed 200 OK in 91ms (Views: 90.4ms | ActiveRecord: 0.0ms)
206
-
207
-
208
- Started POST "/users" for 127.0.0.1 at 2013-05-06 17:59:06 +0100
209
- Processing by UsersController#create as HTML
210
- Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldtoT2Ug+eOtkjnmxRe6R4KpW8S/pmP1lgePwQxUDFg=", "user"=>{"name"=>"m", "gender"=>"f"}, "commit"=>"Create User"}
211
-  (0.1ms) begin transaction
212
- SQL (3.5ms) INSERT INTO "users" ("created_at", "gender", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Mon, 06 May 2013 16:59:06 UTC +00:00], ["gender", "f"], ["name", "m"], ["updated_at", Mon, 06 May 2013 16:59:06 UTC +00:00]]
213
-  (3.6ms) commit transaction
214
- Redirected to http://localhost:3000/users/2
215
- Completed 302 Found in 11ms (ActiveRecord: 7.1ms)
216
-
217
-
218
- Started GET "/users/2" for 127.0.0.1 at 2013-05-06 17:59:06 +0100
219
- Processing by UsersController#show as HTML
220
- Parameters: {"id"=>"2"}
221
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
222
- Rendered users/show.html.erb (1.5ms)
223
- Completed 500 Internal Server Error in 5ms
224
-
225
- ActionView::Template::Error (undefined method `new' for #<User:0x007ff2608fa908>):
226
- 2:
227
- 3: <p>
228
- 4: <b>New:</b>
229
- 5: <%= @user.new %>
230
- 6: </p>
231
- 7:
232
- 8: <p>
233
- app/views/users/show.html.erb:5:in `_app_views_users_show_html_erb___3696768098522740839_70339489415300'
234
- app/controllers/users_controller.rb:18:in `show'
235
-
236
-
237
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.0ms)
238
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
239
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (5.9ms)
240
-
241
-
242
- Started GET "/users/2" for 127.0.0.1 at 2013-05-06 17:59:28 +0100
243
- Processing by UsersController#show as HTML
244
- Parameters: {"id"=>"2"}
245
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
246
- Rendered users/show.html.erb (1.3ms)
247
- Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.1ms)
248
-
249
-
250
- Started GET "/users" for 127.0.0.1 at 2013-05-06 17:59:29 +0100
251
- Processing by UsersController#index as HTML
252
- User Load (0.2ms) SELECT "users".* FROM "users" 
253
- Rendered users/index.html.erb (2.0ms)
254
- Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.2ms)
255
-
256
-
257
- Started GET "/users" for 127.0.0.1 at 2013-05-06 18:01:02 +0100
258
- Processing by UsersController#index as HTML
259
- User Load (0.2ms) SELECT "users".* FROM "users"
260
- Rendered users/index.html.erb (1.9ms)
261
- Completed 500 Internal Server Error in 6ms
262
-
263
- ActionView::Template::Error (undefined method `abbr' for #<User:0x007ff2606e2008>):
264
- 15: <td><%= user.name %></td>
265
- 16: <td><%= user.gender %></td>
266
- 17:
267
- 18: <td><%= user.abbr %></td>
268
- 19: <td><%= user.subject %></td>
269
- 20: <td><%= user.object %></td>
270
- 21: <td><%= user.casual %></td>
271
- app/views/users/index.html.erb:18:in `block in _app_views_users_index_html_erb__195431217160685788_70339488305400'
272
- app/views/users/index.html.erb:13:in `each'
273
- app/views/users/index.html.erb:13:in `_app_views_users_index_html_erb__195431217160685788_70339488305400'
274
- app/controllers/users_controller.rb:7:in `index'
275
-
276
-
277
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.6ms)
278
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.8ms)
279
- Rendered /Users/Gavin/.rvm/gems/ruby-2.0.0-p0@genderize/gems/actionpack-3.2.13/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescues/layout (7.9ms)
280
-
281
-
282
- Started GET "/users" for 127.0.0.1 at 2013-05-06 18:01:08 +0100
283
- Processing by UsersController#index as HTML
284
- User Load (0.2ms) SELECT "users".* FROM "users" 
285
- Rendered users/index.html.erb (2.8ms)
286
- Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.2ms)
287
-
288
-
289
- Started GET "/users/2/edit" for 127.0.0.1 at 2013-05-06 18:01:12 +0100
290
- Processing by UsersController#edit as HTML
291
- Parameters: {"id"=>"2"}
292
- User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
293
- Rendered users/_form.html.erb (2.4ms)
294
- Rendered users/edit.html.erb (4.4ms)
295
- Completed 200 OK in 9ms (Views: 7.4ms | ActiveRecord: 0.2ms)
296
-
297
-
298
- Started PUT "/users/2" for 127.0.0.1 at 2013-05-06 18:01:15 +0100
299
- Processing by UsersController#update as HTML
300
- Parameters: {"utf8"=>"✓", "authenticity_token"=>"ldtoT2Ug+eOtkjnmxRe6R4KpW8S/pmP1lgePwQxUDFg=", "user"=>{"name"=>"m", "gender"=>"m"}, "commit"=>"Update User", "id"=>"2"}
301
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
302
-  (0.0ms) begin transaction
303
-  (0.9ms) UPDATE "users" SET "gender" = 'm', "updated_at" = '2013-05-06 17:01:15.759258' WHERE "users"."id" = 2
304
-  (56.4ms) commit transaction
305
- Redirected to http://localhost:3000/users/2
306
- Completed 302 Found in 62ms (ActiveRecord: 57.5ms)
307
-
308
-
309
- Started GET "/users/2" for 127.0.0.1 at 2013-05-06 18:01:15 +0100
310
- Processing by UsersController#show as HTML
311
- Parameters: {"id"=>"2"}
312
- User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", "2"]]
313
- Rendered users/show.html.erb (0.6ms)
314
- Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)
315
-
316
-
317
- Started GET "/users" for 127.0.0.1 at 2013-05-06 18:01:19 +0100
318
- Processing by UsersController#index as HTML
319
- User Load (0.1ms) SELECT "users".* FROM "users"
320
- Rendered users/index.html.erb (1.8ms)
321
- Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.1ms)