mxit-rails 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
data/lib/mxit_rails/page.rb
CHANGED
@@ -209,7 +209,7 @@ module MxitRails
|
|
209
209
|
|
210
210
|
# Ensure previous inputs are in the params hash
|
211
211
|
mxit_form_session.each do |key, value|
|
212
|
-
params[key.to_sym]
|
212
|
+
params[key.to_sym] ||= value
|
213
213
|
end
|
214
214
|
|
215
215
|
# Proceed to the (first) step if no step is in the session
|
data/lib/mxit_rails/version.rb
CHANGED
@@ -32,7 +32,7 @@ class FormController < ApplicationController
|
|
32
32
|
input :age, 'What is your age?'
|
33
33
|
|
34
34
|
validate :numeric, 'Please enter numeric digits only'
|
35
|
-
validate :
|
35
|
+
validate :max_value, 95, 'Your age cannot be more than 95'
|
36
36
|
end
|
37
37
|
|
38
38
|
step :gender do
|
@@ -56199,3 +56199,56 @@ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
|
|
56199
56199
|
|
56200
56200
|
Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-20 09:16:03 +0200
|
56201
56201
|
Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
|
56202
|
+
Connecting to database specified by database.yml
|
56203
|
+
Connecting to database specified by database.yml
|
56204
|
+
|
56205
|
+
|
56206
|
+
Started GET "/" for 127.0.0.1 at 2012-09-20 13:22:54 +0200
|
56207
|
+
Connecting to database specified by database.yml
|
56208
|
+
Processing by IndexController#index as HTML
|
56209
|
+
Rendered index/index.html.erb within layouts/mxit (2.7ms)
|
56210
|
+
Completed 200 OK in 18ms (Views: 17.9ms | ActiveRecord: 0.0ms)
|
56211
|
+
|
56212
|
+
|
56213
|
+
Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-20 13:22:55 +0200
|
56214
|
+
Served asset /mxit_rails/included.css - 200 OK (3ms)
|
56215
|
+
|
56216
|
+
|
56217
|
+
Started GET "/form" for 127.0.0.1 at 2012-09-20 13:23:00 +0200
|
56218
|
+
Processing by FormController#index as HTML
|
56219
|
+
Rendered form/index/start.html.erb within layouts/mxit (0.5ms)
|
56220
|
+
Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)
|
56221
|
+
|
56222
|
+
|
56223
|
+
Started GET "/form?_mxit_rails_submit=Proceed" for 127.0.0.1 at 2012-09-20 13:23:01 +0200
|
56224
|
+
Processing by FormController#index as HTML
|
56225
|
+
Parameters: {"_mxit_rails_submit"=>"Proceed"}
|
56226
|
+
Rendered form/index/name.html.erb within layouts/mxit (0.5ms)
|
56227
|
+
Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
|
56228
|
+
|
56229
|
+
|
56230
|
+
Started POST "/form" for 127.0.0.1 at 2012-09-20 13:23:03 +0200
|
56231
|
+
Processing by FormController#index as HTML
|
56232
|
+
Parameters: {"name"=>"Linsen", "_mxit_rails_submit"=>"Proceed"}
|
56233
|
+
Redirected to http://localhost:3000/form
|
56234
|
+
Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
|
56235
|
+
|
56236
|
+
|
56237
|
+
Started GET "/form" for 127.0.0.1 at 2012-09-20 13:23:03 +0200
|
56238
|
+
Processing by FormController#index as HTML
|
56239
|
+
Rendered form/index/age.html.erb within layouts/mxit (0.9ms)
|
56240
|
+
Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.0ms)
|
56241
|
+
|
56242
|
+
|
56243
|
+
Started POST "/form" for 127.0.0.1 at 2012-09-20 13:23:06 +0200
|
56244
|
+
Processing by FormController#index as HTML
|
56245
|
+
Parameters: {"age"=>"1000", "_mxit_rails_submit"=>"Proceed"}
|
56246
|
+
Rendered form/index/age.html.erb within layouts/mxit (0.1ms)
|
56247
|
+
Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
|
56248
|
+
|
56249
|
+
|
56250
|
+
Started POST "/form" for 127.0.0.1 at 2012-09-20 13:23:09 +0200
|
56251
|
+
Processing by FormController#index as HTML
|
56252
|
+
Parameters: {"age"=>"95", "_mxit_rails_submit"=>"Proceed"}
|
56253
|
+
Rendered form/index/gender.html.erb within layouts/mxit (0.8ms)
|
56254
|
+
Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
|