mxit-rails 0.2.7 → 0.2.8

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.
@@ -85,6 +85,9 @@ module MxitRails
85
85
  end
86
86
  end
87
87
  session[:_mxit_rails_page] = "#{controller_name}##{action_name}"
88
+ params[:first_visit] = true
89
+ else
90
+ params[:first_visit] = false
88
91
  end
89
92
  end
90
93
 
@@ -1,3 +1,3 @@
1
1
  module MxitRails
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -7,6 +7,8 @@ class FormController < ApplicationController
7
7
  reset! and return
8
8
  end
9
9
 
10
+ @first_visit = params[:first_visit]
11
+
10
12
  form do
11
13
  step :start do
12
14
  proceed 'Start the form'
@@ -5,3 +5,5 @@
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
7
  Great! The last thing we'll need before we can finish the process is your age.<br />
8
+
9
+ First Visit: <%= @first_visit %><br />
@@ -5,3 +5,5 @@
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
7
  Please also indicate your gender<br />
8
+
9
+ First Visit: <%= @first_visit %><br />
@@ -6,3 +6,4 @@
6
6
 
7
7
  Hi there! To get started, we'll need your first name.<br />
8
8
 
9
+ First Visit: <%= @first_visit %><br />
@@ -5,3 +5,5 @@
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
7
  Please take a minute to complete this fast, simple form.<br />
8
+
9
+ First Visit: <%= @first_visit %><br />
@@ -8,3 +8,4 @@
8
8
 
9
9
  Thanks <%= @name %>. Next we'll need your surname.<br />
10
10
 
11
+ First Visit: <%= @first_visit %><br />
@@ -58309,3 +58309,71 @@ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
58309
58309
 
58310
58310
  Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 16:31:31 +0200
58311
58311
  Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
58312
+
58313
+
58314
+ Started GET "/" for 127.0.0.1 at 2012-09-27 12:20:56 +0200
58315
+ Connecting to database specified by database.yml
58316
+ Processing by IndexController#index as HTML
58317
+ Rendered index/index.html.erb within layouts/mxit (20.3ms)
58318
+ Completed 200 OK in 42ms (Views: 41.2ms | ActiveRecord: 0.0ms)
58319
+
58320
+
58321
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:20:56 +0200
58322
+ Served asset /mxit_rails/included.css - 200 OK (3ms)
58323
+
58324
+
58325
+ Started GET "/form" for 127.0.0.1 at 2012-09-27 12:20:59 +0200
58326
+ Processing by FormController#index as HTML
58327
+ Rendered form/index/start.html.erb within layouts/mxit (0.5ms)
58328
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
58329
+
58330
+
58331
+ Started GET "/form" for 127.0.0.1 at 2012-09-27 12:21:01 +0200
58332
+ Processing by FormController#index as HTML
58333
+ Rendered form/index/start.html.erb within layouts/mxit (0.1ms)
58334
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
58335
+
58336
+
58337
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:21:01 +0200
58338
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
58339
+
58340
+
58341
+ Started GET "/" for 127.0.0.1 at 2012-09-27 12:21:03 +0200
58342
+ Processing by IndexController#index as HTML
58343
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
58344
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
58345
+
58346
+
58347
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:21:03 +0200
58348
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
58349
+
58350
+
58351
+ Started GET "/form" for 127.0.0.1 at 2012-09-27 12:21:04 +0200
58352
+ Processing by FormController#index as HTML
58353
+ Rendered form/index/start.html.erb within layouts/mxit (0.1ms)
58354
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
58355
+
58356
+
58357
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:21:04 +0200
58358
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
58359
+
58360
+
58361
+ Started GET "/form?_mxit_rails_submit=Proceed" for 127.0.0.1 at 2012-09-27 12:21:05 +0200
58362
+ Processing by FormController#index as HTML
58363
+ Parameters: {"_mxit_rails_submit"=>"Proceed"}
58364
+ Rendered form/index/name.html.erb within layouts/mxit (0.6ms)
58365
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
58366
+
58367
+
58368
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:21:05 +0200
58369
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
58370
+
58371
+
58372
+ Started GET "/" for 127.0.0.1 at 2012-09-27 12:21:07 +0200
58373
+ Processing by IndexController#index as HTML
58374
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
58375
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
58376
+
58377
+
58378
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-27 12:21:07 +0200
58379
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mxit-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-26 00:00:00.000000000 Z
12
+ date: 2012-09-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails