mxit-rails 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,6 +29,50 @@ module MxitRails
29
29
  return input.to_f <= max
30
30
  end
31
31
 
32
+ def self.cellphone_number? input
33
+ return false unless numeric?(input)
34
+
35
+ # Normalise to local 0xx format
36
+ input.sub! /^00/, '0'
37
+ input.sub! /^\+/, ''
38
+ input.sub! /^27/, '0'
39
+
40
+ # Check length is 10, and first digits are 07 or 08
41
+ return false unless length?(input, 10)
42
+ return false unless ((input =~ /^07/) || (input =~ /^08/))
43
+
44
+ return true
45
+ end
46
+
47
+ def self.sa_id_number? input
48
+ return false unless numeric?(input)
49
+
50
+ #1. numeric and 13 digits
51
+ return false unless length?(input, 13)
52
+
53
+ #2. first 6 numbers is a valid date
54
+ dateString = "#{input[0..1]}-#{input[2..3]}-#{input[4..5]}"
55
+ begin
56
+ date = Date.parse dateString
57
+ rescue ArgumentError
58
+ return false
59
+ end
60
+
61
+ #3. luhn formula
62
+ temp_total = 0
63
+ checksum = 0
64
+ multiplier = 1
65
+ (0..12).each do |i|
66
+ temp_total = input[i].to_i * multiplier
67
+ if temp_total > 9
68
+ temp_total = temp_total.to_s[0].to_i + temp_total.to_s[1].to_i
69
+ end
70
+ checksum += temp_total
71
+ multiplier = multiplier.even? ? 1 : 2
72
+ end
73
+ return checksum % 10 == 0
74
+ end
75
+
32
76
 
33
77
  end
34
78
  end
@@ -1,3 +1,3 @@
1
1
  module MxitRails
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
@@ -12,9 +12,17 @@ class FormController < ApplicationController
12
12
  step :name do
13
13
  input :name, 'What is your name?'
14
14
  validate :not_blank, 'You must enter a name'
15
+ validate :min_length, 2, 'Names are at least 2 characters long'
15
16
  validate 'That is not a cool enough name' do |input|
16
17
  input != 'Steve'
17
18
  end
19
+
20
+ validations_failed do |types, messages|
21
+ logger.info "Failed: #{types}"
22
+ end
23
+ validated do
24
+ logger.info "Validated!"
25
+ end
18
26
  end
19
27
 
20
28
  step :surname do
@@ -22,6 +30,10 @@ class FormController < ApplicationController
22
30
  skip_to :age
23
31
  return
24
32
  end
33
+ if params[:name] == 'David'
34
+ submit!
35
+ return
36
+ end
25
37
 
26
38
  input :surname, 'What is your surname?'
27
39
 
@@ -10,7 +10,7 @@ class WelcomeController < ApplicationController
10
10
  # NB Don't put a return here - it causes much unhappiness
11
11
  input != 'custom'
12
12
  end
13
- validate :numeric, 'Please enter a numeric digits only'
13
+ validate :numeric, 'Please enter numeric digits only'
14
14
  validate :min_length, 10, 'Numbers must be at least 10 digits long'
15
15
  validate :max_length, 11, 'Numbers cannot be longer than 11 digits'
16
16
 
@@ -4,8 +4,4 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>Great! The last thing we'll need before we can finish the process is your age.</p>
8
-
9
- <% if mxit_validation_message %>
10
- <p><%= mxit_validation_message %></p>
11
- <% end %>
7
+ Great! The last thing we'll need before we can finish the process is your age.<br />
@@ -4,9 +4,9 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>That's it. Please just confirm your information below:</p>
8
- <p>First name: <b><%= @name %></b></p>
9
- <p>Surname: <b><%= @surname %></b></p>
10
- <p>Age: <b><%= @age %></b></p>
11
- <p>Gender: <b><%= @gender %></b></p>
12
- <p>Dummy variable: <b><%= @dummy %></b></p>
7
+ That's it. Please just confirm your information below:<br /><br />
8
+ First name: <b><%= @name %></b><br />
9
+ Surname: <b><%= @surname %></b><br />
10
+ Age: <b><%= @age %></b><br />
11
+ Gender: <b><%= @gender %></b><br />
12
+ Dummy variable: <b><%= @dummy %></b><br />
@@ -4,8 +4,4 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>Please also indicate your gender</p>
8
-
9
- <% if mxit_validation_message %>
10
- <p><%= mxit_validation_message %></p>
11
- <% end %>
7
+ Please also indicate your gender<br />
@@ -4,9 +4,5 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>Hi there! To get started, we'll need your first name.</p>
8
-
9
- <% if mxit_validation_message %>
10
- <p><%= mxit_validation_message %></p>
11
- <% end %>
7
+ Hi there! To get started, we'll need your first name.<br />
12
8
 
@@ -4,8 +4,4 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>Please take a minute to complete this fast, simple form.</p>
8
-
9
- <% if mxit_validation_message %>
10
- <p><%= mxit_validation_message %></p>
11
- <% end %>
7
+ Please take a minute to complete this fast, simple form.<br />
@@ -4,8 +4,5 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <p>Thanks <%= @name %>. Next we'll need your surname.</p>
7
+ Thanks <%= @name %>. Next we'll need your surname.<br />
8
8
 
9
- <% if mxit_validation_message %>
10
- <p><%= mxit_validation_message %></p>
11
- <% end %>
@@ -2,14 +2,15 @@
2
2
  <b>Templater</b>
3
3
 
4
4
  <%= mxit_table_row %>
5
- <p>This is the root of the dummy app...</p>
5
+ This is the root of the dummy app...<br />
6
+ <br />
6
7
 
7
- <p><b>Current Mxit Params:</b><br />
8
+ <b>Current Mxit Params:</b><br />
8
9
  <% @mxit_params.each do |k,v| %>
9
- <%= k %>: <b><%= v %></b><br />
10
+ <%= k %>: <b><%= v %></b><br />
10
11
  <% end %>
11
- </p>
12
+ <br />
12
13
 
13
- <p><%= mxit_link '/welcome', 'Single-page form' %><p>
14
- <p><%= mxit_link '/form', 'Multi-step form' %><p>
15
- <p><%= mxit_link '/index', 'An extra link' %><p>
14
+ <%= mxit_link '/welcome', 'Single-page form' %><br />
15
+ <%= mxit_link '/form', 'Multi-step form' %><br />
16
+ <%= mxit_link '/index', 'An extra link' %><br />
@@ -4,4 +4,4 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Done' %>
6
6
 
7
- <p>Your information was successfully received.</p>
7
+ Your information was successfully received.<br />
@@ -4,4 +4,4 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/welcome', 'Back' %>
6
6
 
7
- <p>This is the awesome easter egg :-)</p>
7
+ This is the awesome easter egg :-)<br />
@@ -4,10 +4,8 @@
4
4
  <%= mxit_table_row %>
5
5
  <%= mxit_nav_link '/', 'Back' %>
6
6
 
7
- <% if mxit_validation_message %>
8
- <%= mxit_validation_message %>
9
- <% else %>
10
- <p>You're visiting the templater-in-progress. It's now <%= @time %>.</p>
11
- <p>Please enter your cellphone number to proceed</p>
7
+ <% unless mxit_validation_message %>
8
+ You're visiting the templater-in-progress. It's now <%= @time %>.<br /><br />
9
+ Please enter your cellphone number to proceed
12
10
  <% end %>
13
11
 
@@ -56640,3 +56640,594 @@ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56640
56640
 
56641
56641
  Started GET "/assets/mxit_rails/favicon.ico" for 127.0.0.1 at 2012-09-21 08:12:01 +0200
56642
56642
  Served asset /mxit_rails/favicon.ico - 304 Not Modified (0ms)
56643
+ Connecting to database specified by database.yml
56644
+ Connecting to database specified by database.yml
56645
+ Connecting to database specified by database.yml
56646
+ Connecting to database specified by database.yml
56647
+ Connecting to database specified by database.yml
56648
+ Connecting to database specified by database.yml
56649
+ Connecting to database specified by database.yml
56650
+
56651
+
56652
+ Started GET "/emulator" for 127.0.0.1 at 2012-09-26 08:14:48 +0200
56653
+ Connecting to database specified by database.yml
56654
+ Processing by EmulatorController#index as HTML
56655
+ Rendered /Users/linsenloots/Dev/payments/mxit-rails/app/views/emulator/index.html.erb (27.6ms)
56656
+ Completed 200 OK in 37ms (Views: 36.9ms | ActiveRecord: 0.0ms)
56657
+
56658
+
56659
+ Started GET "/assets/mxit_rails/jquery-1.8.0.min.js?body=1" for 127.0.0.1 at 2012-09-26 08:14:48 +0200
56660
+ Served asset /mxit_rails/jquery-1.8.0.min.js - 304 Not Modified (8ms)
56661
+
56662
+
56663
+ Started GET "/assets/mxit_rails/emulator.js?body=1" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56664
+ Served asset /mxit_rails/emulator.js - 304 Not Modified (6ms)
56665
+
56666
+
56667
+ Started GET "/assets/mxit_rails/emulator.css?body=1" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56668
+ Served asset /mxit_rails/emulator.css - 200 OK (2ms)
56669
+
56670
+
56671
+ Started GET "/assets/mxit_rails/jquery.cookie.js?body=1" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56672
+ Served asset /mxit_rails/jquery.cookie.js - 304 Not Modified (24ms)
56673
+
56674
+
56675
+ Started GET "/assets/mxit_rails/jquery.history.js?body=1" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56676
+ Served asset /mxit_rails/jquery.history.js - 304 Not Modified (2ms)
56677
+
56678
+
56679
+ Started GET "/assets/mxit_rails/home.png" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56680
+ Served asset /mxit_rails/home.png - 304 Not Modified (6ms)
56681
+
56682
+
56683
+ Started GET "/assets/mxit_rails/refresh.png" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56684
+ Served asset /mxit_rails/refresh.png - 304 Not Modified (2ms)
56685
+
56686
+
56687
+ Started GET "/assets/mxit_rails/go.png" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56688
+ Served asset /mxit_rails/go.png - 304 Not Modified (2ms)
56689
+
56690
+
56691
+ Started GET "/assets/mxit_rails/out.png" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56692
+ Served asset /mxit_rails/out.png - 304 Not Modified (2ms)
56693
+
56694
+
56695
+ Started GET "/assets/mxit_rails/nokia-5310-frame.png" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56696
+ Served asset /mxit_rails/nokia-5310-frame.png - 304 Not Modified (7ms)
56697
+
56698
+
56699
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56700
+ Processing by IndexController#index as HTML
56701
+ Rendered index/index.html.erb within layouts/mxit (0.7ms)
56702
+ Completed 200 OK in 10ms (Views: 9.3ms | ActiveRecord: 0.0ms)
56703
+
56704
+
56705
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:14:49 +0200
56706
+ Served asset /mxit_rails/included.css - 200 OK (2ms)
56707
+
56708
+
56709
+ Started GET "/form" for 127.0.0.1 at 2012-09-26 08:14:51 +0200
56710
+ Processing by FormController#index as HTML
56711
+ Rendered form/index/start.html.erb within layouts/mxit (0.6ms)
56712
+ Completed 200 OK in 4ms (Views: 3.9ms | ActiveRecord: 0.0ms)
56713
+
56714
+
56715
+ Started GET "/form?_mxit_rails_submit=Proceed" for 127.0.0.1 at 2012-09-26 08:14:53 +0200
56716
+ Processing by FormController#index as HTML
56717
+ Parameters: {"_mxit_rails_submit"=>"Proceed"}
56718
+ Rendered form/index/name.html.erb within layouts/mxit (1.0ms)
56719
+ Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)
56720
+
56721
+
56722
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:14:57 +0200
56723
+ Processing by FormController#index as HTML
56724
+ Parameters: {"name"=>"", "_mxit_rails_submit"=>"Proceed"}
56725
+ Failed: [:not_blank]
56726
+ Rendered form/index/name.html.erb within layouts/mxit (0.1ms)
56727
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
56728
+
56729
+
56730
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:15:29 +0200
56731
+ Processing by FormController#index as HTML
56732
+ Parameters: {"name"=>"", "_mxit_rails_submit"=>"Proceed"}
56733
+ Failed: [:not_blank, :min_length]
56734
+ Rendered form/index/name.html.erb within layouts/mxit (0.1ms)
56735
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
56736
+
56737
+
56738
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:15:36 +0200
56739
+ Processing by FormController#index as HTML
56740
+ Parameters: {"name"=>"Steve", "_mxit_rails_submit"=>"Proceed"}
56741
+ Failed: [:custom]
56742
+ Rendered form/index/name.html.erb within layouts/mxit (0.1ms)
56743
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
56744
+
56745
+
56746
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:15:41 +0200
56747
+ Processing by FormController#index as HTML
56748
+ Parameters: {"name"=>"John", "_mxit_rails_submit"=>"Proceed"}
56749
+ Validated!
56750
+ Rendered form/index/surname.html.erb within layouts/mxit (0.7ms)
56751
+ Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms)
56752
+
56753
+
56754
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:16:32 +0200
56755
+ Processing by IndexController#index as HTML
56756
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
56757
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
56758
+
56759
+
56760
+ Started GET "/form" for 127.0.0.1 at 2012-09-26 08:16:33 +0200
56761
+ Processing by FormController#index as HTML
56762
+ Rendered form/index/start.html.erb within layouts/mxit (0.1ms)
56763
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
56764
+
56765
+
56766
+ Started GET "/form?_mxit_rails_submit=Proceed" for 127.0.0.1 at 2012-09-26 08:18:37 +0200
56767
+ Processing by FormController#index as HTML
56768
+ Parameters: {"_mxit_rails_submit"=>"Proceed"}
56769
+ Rendered form/index/name.html.erb within layouts/mxit (0.1ms)
56770
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
56771
+
56772
+
56773
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:18:39 +0200
56774
+ Processing by FormController#index as HTML
56775
+ Parameters: {"name"=>"David", "_mxit_rails_submit"=>"Proceed"}
56776
+ Validated!
56777
+ Completed 500 Internal Server Error in 3ms
56778
+
56779
+ NoMethodError (undefined method `submit!' for #<FormController:0x007f872d149478>):
56780
+ app/controllers/form_controller.rb:34:in `block (2 levels) in index'
56781
+ app/controllers/form_controller.rb:28:in `block in index'
56782
+ app/controllers/form_controller.rb:6:in `index'
56783
+
56784
+
56785
+ Rendered /Users/linsenloots/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.4ms)
56786
+ Rendered /Users/linsenloots/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.0ms)
56787
+ Rendered /Users/linsenloots/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (10.1ms)
56788
+
56789
+
56790
+ Started GET "/assets/mxit_rails/in.png" for 127.0.0.1 at 2012-09-26 08:18:39 +0200
56791
+ Served asset /mxit_rails/in.png - 304 Not Modified (2ms)
56792
+
56793
+
56794
+ Started GET "/form" for 127.0.0.1 at 2012-09-26 08:18:49 +0200
56795
+ Connecting to database specified by database.yml
56796
+ Processing by FormController#index as HTML
56797
+ Rendered form/index/name.html.erb within layouts/mxit (1.7ms)
56798
+ Completed 200 OK in 16ms (Views: 15.8ms | ActiveRecord: 0.0ms)
56799
+
56800
+
56801
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:18:50 +0200
56802
+ Served asset /mxit_rails/included.css - 304 Not Modified (23ms)
56803
+
56804
+
56805
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:18:55 +0200
56806
+ Processing by IndexController#index as HTML
56807
+ Rendered index/index.html.erb within layouts/mxit (0.7ms)
56808
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
56809
+
56810
+
56811
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:18:55 +0200
56812
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56813
+
56814
+
56815
+ Started GET "/form" for 127.0.0.1 at 2012-09-26 08:18:57 +0200
56816
+ Processing by FormController#index as HTML
56817
+ Rendered form/index/start.html.erb within layouts/mxit (0.8ms)
56818
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms)
56819
+
56820
+
56821
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:18:57 +0200
56822
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56823
+
56824
+
56825
+ Started GET "/form?_mxit_rails_submit=Proceed" for 127.0.0.1 at 2012-09-26 08:18:58 +0200
56826
+ Processing by FormController#index as HTML
56827
+ Parameters: {"_mxit_rails_submit"=>"Proceed"}
56828
+ Rendered form/index/name.html.erb within layouts/mxit (0.1ms)
56829
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
56830
+
56831
+
56832
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:18:58 +0200
56833
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56834
+
56835
+
56836
+ Started POST "/form" for 127.0.0.1 at 2012-09-26 08:19:00 +0200
56837
+ Processing by FormController#index as HTML
56838
+ Parameters: {"name"=>"David", "_mxit_rails_submit"=>"Proceed"}
56839
+ Validated!
56840
+ Redirected to http://localhost:3000/form
56841
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
56842
+
56843
+
56844
+ Started GET "/form" for 127.0.0.1 at 2012-09-26 08:19:00 +0200
56845
+ Processing by FormController#index as HTML
56846
+ Form Completed!
56847
+ name: David; surname: ; age:
56848
+ ******
56849
+
56850
+
56851
+ Redirected to http://localhost:3000/index/success
56852
+ Completed 302 Found in 0ms (ActiveRecord: 0.0ms)
56853
+
56854
+
56855
+ Started GET "/index/success" for 127.0.0.1 at 2012-09-26 08:19:00 +0200
56856
+ Processing by IndexController#success as HTML
56857
+ Rendered index/success.html.erb within layouts/mxit (0.4ms)
56858
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
56859
+
56860
+
56861
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:19:00 +0200
56862
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56863
+
56864
+
56865
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:22:45 +0200
56866
+ Processing by IndexController#index as HTML
56867
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
56868
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
56869
+
56870
+
56871
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:22:45 +0200
56872
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56873
+
56874
+
56875
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:24:24 +0200
56876
+ Processing by IndexController#index as HTML
56877
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
56878
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
56879
+
56880
+
56881
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:24:24 +0200
56882
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56883
+
56884
+
56885
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:27:03 +0200
56886
+ Processing by IndexController#index as HTML
56887
+ Rendered index/index.html.erb within layouts/mxit (0.7ms)
56888
+ Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)
56889
+
56890
+
56891
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:03 +0200
56892
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56893
+
56894
+
56895
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:07 +0200
56896
+ Processing by WelcomeController#index as HTML
56897
+ Rendered welcome/index.html.erb within layouts/mxit (0.6ms)
56898
+ Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.0ms)
56899
+
56900
+
56901
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:07 +0200
56902
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56903
+
56904
+
56905
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:26 +0200
56906
+ Processing by WelcomeController#index as HTML
56907
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56908
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
56909
+
56910
+
56911
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:26 +0200
56912
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56913
+
56914
+
56915
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:27 +0200
56916
+ Processing by WelcomeController#index as HTML
56917
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56918
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
56919
+
56920
+
56921
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:27 +0200
56922
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56923
+
56924
+
56925
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:34 +0200
56926
+ Processing by WelcomeController#index as HTML
56927
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56928
+ Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)
56929
+
56930
+
56931
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:34 +0200
56932
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56933
+
56934
+
56935
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:35 +0200
56936
+ Processing by WelcomeController#index as HTML
56937
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56938
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
56939
+
56940
+
56941
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:35 +0200
56942
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56943
+
56944
+
56945
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:54 +0200
56946
+ Processing by WelcomeController#index as HTML
56947
+ Rendered welcome/index.html.erb within layouts/mxit (0.7ms)
56948
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)
56949
+
56950
+
56951
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:54 +0200
56952
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56953
+
56954
+
56955
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:27:55 +0200
56956
+ Processing by WelcomeController#index as HTML
56957
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56958
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
56959
+
56960
+
56961
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:55 +0200
56962
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56963
+
56964
+
56965
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:27:55 +0200
56966
+ Processing by WelcomeController#index as HTML
56967
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
56968
+ Validation: ""
56969
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
56970
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
56971
+
56972
+
56973
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:27:55 +0200
56974
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56975
+
56976
+
56977
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:28:20 +0200
56978
+ Processing by IndexController#index as HTML
56979
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
56980
+ Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)
56981
+
56982
+
56983
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:28:20 +0200
56984
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56985
+
56986
+
56987
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:28:21 +0200
56988
+ Processing by WelcomeController#index as HTML
56989
+ Rendered welcome/index.html.erb within layouts/mxit (26.7ms)
56990
+ Completed 200 OK in 30ms (Views: 29.3ms | ActiveRecord: 0.0ms)
56991
+
56992
+
56993
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:28:21 +0200
56994
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
56995
+
56996
+
56997
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:28:29 +0200
56998
+ Processing by WelcomeController#index as HTML
56999
+ Rendered welcome/index.html.erb within layouts/mxit (0.6ms)
57000
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
57001
+
57002
+
57003
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:28:29 +0200
57004
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57005
+
57006
+
57007
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:28:30 +0200
57008
+ Processing by WelcomeController#index as HTML
57009
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57010
+ Validation: ""
57011
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57012
+ Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)
57013
+
57014
+
57015
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:28:30 +0200
57016
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57017
+
57018
+
57019
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:28:59 +0200
57020
+ Processing by WelcomeController#index as HTML
57021
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57022
+ Completed 200 OK in 3ms (Views: 3.1ms | ActiveRecord: 0.0ms)
57023
+
57024
+
57025
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:28:59 +0200
57026
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57027
+
57028
+
57029
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:29:01 +0200
57030
+ Processing by WelcomeController#index as HTML
57031
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57032
+ Validation: ""
57033
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57034
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
57035
+
57036
+
57037
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:29:01 +0200
57038
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57039
+
57040
+
57041
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:29:05 +0200
57042
+ Processing by WelcomeController#index as HTML
57043
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57044
+ Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)
57045
+
57046
+
57047
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:29:05 +0200
57048
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57049
+
57050
+
57051
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:29:08 +0200
57052
+ Processing by WelcomeController#index as HTML
57053
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57054
+ Validation: ""
57055
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57056
+ Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.0ms)
57057
+
57058
+
57059
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:29:08 +0200
57060
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57061
+
57062
+
57063
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:30:11 +0200
57064
+ Processing by WelcomeController#index as HTML
57065
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57066
+ Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.0ms)
57067
+
57068
+
57069
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:11 +0200
57070
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57071
+
57072
+
57073
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:30:16 +0200
57074
+ Processing by WelcomeController#index as HTML
57075
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57076
+ Validation: ""
57077
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57078
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
57079
+
57080
+
57081
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:16 +0200
57082
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57083
+
57084
+
57085
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:30:17 +0200
57086
+ Processing by WelcomeController#index as HTML
57087
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57088
+ Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms)
57089
+
57090
+
57091
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:17 +0200
57092
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57093
+
57094
+
57095
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:30:39 +0200
57096
+ Processing by WelcomeController#index as HTML
57097
+ Rendered welcome/index.html.erb within layouts/mxit (0.8ms)
57098
+ Completed 200 OK in 3ms (Views: 3.2ms | ActiveRecord: 0.0ms)
57099
+
57100
+
57101
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:39 +0200
57102
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57103
+
57104
+
57105
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:30:41 +0200
57106
+ Processing by WelcomeController#index as HTML
57107
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57108
+ Validation: ""
57109
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57110
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
57111
+
57112
+
57113
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:41 +0200
57114
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57115
+
57116
+
57117
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:30:53 +0200
57118
+ Processing by WelcomeController#index as HTML
57119
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57120
+ Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.0ms)
57121
+
57122
+
57123
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:53 +0200
57124
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57125
+
57126
+
57127
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:30:56 +0200
57128
+ Processing by WelcomeController#index as HTML
57129
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57130
+ Validation: ""
57131
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57132
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
57133
+
57134
+
57135
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:30:56 +0200
57136
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57137
+
57138
+
57139
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:31:00 +0200
57140
+ Processing by WelcomeController#index as HTML
57141
+ Parameters: {"phone_number"=>"0", "_mxit_rails_submit"=>"Proceed"}
57142
+ Validation: "0"
57143
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57144
+ Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.0ms)
57145
+
57146
+
57147
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:31:00 +0200
57148
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57149
+
57150
+
57151
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:31:59 +0200
57152
+ Processing by WelcomeController#index as HTML
57153
+ Parameters: {"phone_number"=>"0829267557", "_mxit_rails_submit"=>"Proceed"}
57154
+ Validation: "0829267557"
57155
+ This won't execute if an error occurred or if error! or redirect! was called
57156
+ Redirected to http://localhost:3000/index/success
57157
+ Completed 302 Found in 1ms (ActiveRecord: 0.0ms)
57158
+
57159
+
57160
+ Started GET "/index/success" for 127.0.0.1 at 2012-09-26 08:31:59 +0200
57161
+ Processing by IndexController#success as HTML
57162
+ Rendered index/success.html.erb within layouts/mxit (0.5ms)
57163
+ Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms)
57164
+
57165
+
57166
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:31:59 +0200
57167
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57168
+
57169
+
57170
+ Started GET "/" for 127.0.0.1 at 2012-09-26 08:32:02 +0200
57171
+ Processing by IndexController#index as HTML
57172
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
57173
+ Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms)
57174
+
57175
+
57176
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:32:02 +0200
57177
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57178
+
57179
+
57180
+ Started GET "/index" for 127.0.0.1 at 2012-09-26 08:32:08 +0200
57181
+ Processing by IndexController#index as HTML
57182
+ Rendered index/index.html.erb within layouts/mxit (0.2ms)
57183
+ Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)
57184
+
57185
+
57186
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:32:08 +0200
57187
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57188
+
57189
+
57190
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:37:26 +0200
57191
+
57192
+ SyntaxError (/Users/linsenloots/Dev/payments/mxit-rails/app/helpers/mxit_rails_helper.rb:50: invalid multibyte char (US-ASCII)
57193
+ /Users/linsenloots/Dev/payments/mxit-rails/app/helpers/mxit_rails_helper.rb:50: invalid multibyte char (US-ASCII)
57194
+ /Users/linsenloots/Dev/payments/mxit-rails/app/helpers/mxit_rails_helper.rb:50: syntax error, unexpected $end, expecting keyword_end
57195
+ ...le=\"#{ mxit_style :link }\">» #{content}</b><br />".html_s...
57196
+ ... ^):
57197
+ app/controllers/application_controller.rb:1:in `<top (required)>'
57198
+ app/controllers/welcome_controller.rb:1:in `<top (required)>'
57199
+
57200
+
57201
+ Rendered /Users/linsenloots/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (6.4ms)
57202
+
57203
+
57204
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:37:39 +0200
57205
+ Processing by WelcomeController#index as HTML
57206
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57207
+ Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms)
57208
+
57209
+
57210
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:37:39 +0200
57211
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57212
+
57213
+
57214
+ Started GET "/welcome" for 127.0.0.1 at 2012-09-26 08:37:56 +0200
57215
+ Processing by WelcomeController#index as HTML
57216
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57217
+ Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)
57218
+
57219
+
57220
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:37:56 +0200
57221
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)
57222
+
57223
+
57224
+ Started POST "/welcome" for 127.0.0.1 at 2012-09-26 08:38:55 +0200
57225
+ Processing by WelcomeController#index as HTML
57226
+ Parameters: {"phone_number"=>"", "_mxit_rails_submit"=>"Proceed"}
57227
+ Validation: ""
57228
+ Rendered welcome/index.html.erb within layouts/mxit (0.1ms)
57229
+ Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)
57230
+
57231
+
57232
+ Started GET "/assets/mxit_rails/included.css?body=1" for 127.0.0.1 at 2012-09-26 08:38:55 +0200
57233
+ Served asset /mxit_rails/included.css - 304 Not Modified (0ms)