resources 1.0.1 → 1.1.0

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.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -1
  3. data/lib/generators/resources/install/templates/config/initializers/resources.rb +2 -1
  4. data/lib/resources/configuration.rb +2 -1
  5. data/lib/resources/manager.rb +3 -3
  6. data/lib/resources/rest_actions.rb +14 -0
  7. data/lib/resources/version.rb +1 -1
  8. data/test/dummy/app/controllers/admin/countries_controller.rb +1 -0
  9. data/test/dummy/app/controllers/countries_controller.rb +0 -1
  10. data/test/dummy/app/views/admin/countries/index.html.haml +1 -0
  11. data/test/dummy/config/locales/en.yml +3 -0
  12. data/test/dummy/db/development.sqlite3 +0 -0
  13. data/test/dummy/log/development.log +876 -0
  14. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/-mGQ6DpNnhP4JLw-C8pg-G7D30fWEKs8iYv6YEl6eeo.cache +0 -0
  15. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/0kueBtoA76IVuqT2VHrbRdLQhajAnqI_d7bsbct7Fgs.cache +1 -0
  16. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/1fidLos4TsMC1Jzat66F4EuJMnvA4Ek4Yq3Wx_diqLA.cache +2 -0
  17. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/2np_QNr-8V5ATU_9I3kOzxF18pmu11lCOHVylI48ekM.cache +0 -0
  18. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/4J6bck_MoVsgq__uOXuJpDLpl3Yp83bXsziK7YmSgEg.cache +0 -0
  19. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5IM8fcIiN0HCNeC5GoFVAsVUTeKZH2KPPR72HYTkhJ8.cache +2 -0
  20. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  21. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6GTd9syVIVnTTuP1QgnpJevUsgufLfbIPLVei6huEAA.cache +1 -0
  22. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/6i6iTzCeBLjwo1sXDwikDtlsQnjH_iyFliS9nFKAJr0.cache +0 -0
  23. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7-lTGwgkFgdm9h5QEtMwjJtraeMGK9_EVe_G7jdDz30.cache +0 -0
  24. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7Biz_daU6XCvv9DxooKaFh86aygxzay-GADCvIvgp1w.cache +0 -0
  25. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/7OjAh6mfRLbucnQIDY2lqF5_DVoKvH28APMCgnWCBTY.cache +1 -0
  26. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/9TXKkJm0BJgWCGnTIRy9DiZqg7Oj59oXWg5qjfZQltM.cache +0 -0
  27. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/BUMbbVTxztnHq6mT5BfNSDon9bajaO2avjVpu9RAIkI.cache +0 -0
  28. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/DHzU_G_Yt92B-XiVahD8RRqtUHs5QneTDgVrzYKLI6s.cache +1 -0
  29. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/E-VvhC0gAUkYMnJhNOQlzSaNQEPdB6RcV7WpL-fGB5c.cache +1 -0
  30. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ElFnaHHrsYXEtp-mgFY1heYB8x_tFzAZWLTRHRVkxKs.cache +2 -0
  31. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/FMLmcoKGYpE01mLCffVL8odyYzjTtdfOKiqChzUSKmQ.cache +0 -0
  32. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/GgpNT-gI3dJUJ9l298KI-1olpo9XwSgVFV6y7UBioqU.cache +1 -0
  33. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/JAq6grTeDnalqG2fFfKJ3PQoq5bg9Q5yrd8jZxJX5Mc.cache +0 -0
  34. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Kk1IOjmhdNAFfjzm4tZbryHAkZDPC1g2F2lwJSJ-hIU.cache +1 -0
  35. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Kkn_gdKyY1r-NCAMxVUyALrwoxVRKyJgD90tZDBvEhE.cache +2 -0
  36. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/MKE1KaTpJjLX5bDO-mpZqIkhSOkEsqHPyyBgVOXwN8w.cache +1 -0
  37. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Mty3UNnLIZY-hojyJgu0uD3-B2lMsqGSkc_26hlj_Vo.cache +1 -0
  38. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/NSpd1s_Y-QyznIvUUToSdZZCaDDaIdpD_erSDv6frgc.cache +1 -0
  39. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  40. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/OkXBSDsAbxfsgCraqFa53FqKN0GvkVa3h0lbmJNo5Cc.cache +0 -0
  41. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Op_BSINnYvyxjJZgQG7je0OrstOzXaMi-XVMf9Yc380.cache +1 -0
  42. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/RJ-ARjGW8Rfe0Emw0bLsgqm0yZLVzlVS6DAWpYuXycc.cache +0 -0
  43. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Ui4tLjXThXyNYJ9OGv7b2irRoXtHiUZzk_TGQZb0D0g.cache +0 -0
  44. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/VzTDK86-s3ln4L02t2eOhF2ddiGfp4iaiZA_MAihzlo.cache +1 -0
  45. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/W2DjWBLIhQs8JvbHRoAJht-pM52xNyjqUN9cR0XR-WA.cache +1 -0
  46. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/X0vs_Fjg0uoP9-v48esjUoPJmEGr3bGEgHTN4XhYi3o.cache +1 -0
  47. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YSj20z0GWO1nqZt0JB4yOgBbNtcCpeW6okj9N2LQ9sM.cache +1 -0
  48. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/YtNa7YjoVwmac3O_YNQqkKL1mi9jZxl_OH7ugxEVpYw.cache +0 -0
  49. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/Yv65wJtpFg-7rzR5W2yOuVCHI-auJLV4bjWxtP0dGkA.cache +2 -0
  50. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ZWSGrj1kNT9dGavEsPUMukBn3Y5W-fj0DX0LefITapk.cache +2 -0
  51. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aRBdriz5DBnlMM_52NFatanX3efJG_37-EbBRk38rp8.cache +2 -0
  52. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/aqZwgQLOvXo2Ui0j3P_cdjTVeswcddsgECz8otlYCW0.cache +0 -0
  53. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/c2BMrpXzYBXjsZKjHTh67hdkhXCFkrFEIgdlrY10OrI.cache +0 -0
  54. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/cswPZGIEebNA4P8PNRkCv-E5qoRf-kjV9zn22FmU3fY.cache +0 -0
  55. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/dTFcc0SYHEk-hEK_vQaiPaohfd1oE4Sokpy3aEC1UzA.cache +0 -0
  56. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/e7YTGj9RLMXzoEjIr5XeoiUDzXFqFKg0zTk6ERUpa0A.cache +0 -0
  57. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/eJO00QelvVCcU53lEUEByuR2zcQdmGmGYLMbu-pMYQk.cache +1 -0
  58. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/fOMwhE_LoK6PBz43rr86imRHqStpfn-j0zKwNCEFA7A.cache +2 -0
  59. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/gebVa-cuIydHQUikhFNtEukgHz4hhaKiMgjukKdC2Fs.cache +0 -0
  60. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hkPu7aypQooQldb_bBHeVS3ySr-oqmInuQRZ0mqqL1Y.cache +1 -0
  61. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/hpkxCYyfZ496a-HH0rh_SYMccyscQAMeai7zrQUHq-Q.cache +1 -0
  62. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/i9L_W5WMz9z2G8o3eUGwU1ISiBnYTS_3k9ZWCyF7x0U.cache +1 -0
  63. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/mNW5c4QHslhY8XpcU8uTzbCMkDXTqiZyLDSTD706KrM.cache +1 -0
  64. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/oPBJby7opAlyNAjdJBhB1IGfkf9yRTtt0i8zAz5k-lo.cache +1 -0
  65. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/ohN58J6S6pO_zQz5OeWiLN5m21sCRh8BvzwxHBAS8qU.cache +0 -0
  66. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/q4e53O4aPv8OaxaB990eayNA1PVc4W_ZX4PJ-Jx5HZU.cache +0 -0
  67. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/rrHCTB_p-WPOX_5VoOQNpMZmmVyT28AgDNPMOH6Q22w.cache +1 -0
  68. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/sApciqnbNPyUznFQAq0b1GdbAChlj6Esn7f1Qe5oTXA.cache +0 -0
  69. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/txV0HI2cvFmrhlhlYD34eQA2O3RHEgPwsUlqP0768FA.cache +0 -0
  70. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/viIEhnzlP4VIBJbgsoZN0vMdiFNzHSxHCyxdRvj-Hfk.cache +1 -0
  71. data/test/dummy/tmp/cache/assets/development/sprockets/v3.0/yE5oS9otYhfdCOC1Qg9zjLZjT62Q1LhGbn6hoBSuV5U.cache +1 -0
  72. metadata +103 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e5ed704f005664652620db58a65009f2ef5a1260
4
- data.tar.gz: c335d159bf4bacdaa0389dff7df154ba38a4c85d
3
+ metadata.gz: d7ba480aba9df36982aa13a33f36a1494179f19d
4
+ data.tar.gz: d678f58af6eeae8de533447c6c962438859e899d
5
5
  SHA512:
6
- metadata.gz: ae6977fbe1caf2b3444f66699c682998fd311017c09a7d41c7e4d72a1b453365b026b2712e73f4823a1203b84dcda881fb2bf48e46c51a661ed4102d0ae50d9d
7
- data.tar.gz: 52aa1ce83e25d996a3723ce34a64b9b28ccfe95218d69bf214d021684a951ebc1eb078028ce99582ae9d425e88bf31b16261bd5478255c225527e9642740df3f
6
+ metadata.gz: a97a3ddf6bba5a3c09b4ac893b8b559375f457dc620f2cfa7d1a4048925e04e48a563ab049708d332d00fdf1d84966f9d88886cb01f9889775bcdb0b0a7ee552
7
+ data.tar.gz: 1ca3fbc57783202dd5c94d8bd6829671c6cf5227e6d24302809a0ad9527e71553cc719ac65c1281a601eb296c8af432d8ddfae5986caa3fed9c68f1dfa3eb2b9
data/README.md CHANGED
@@ -18,6 +18,7 @@ Add this line to your application's Gemfile:
18
18
  ```
19
19
  gem 'resources'
20
20
  ```
21
+ *Note:* if you use rails 4 you need to add `gem 'responders'` before resources
21
22
 
22
23
  And then execute:
23
24
 
@@ -31,7 +32,7 @@ Or install it yourself as:
31
32
  $ gem install resources
32
33
  ```
33
34
 
34
- Rub the configuration generator, this will create the **resources initializer**
35
+ Run the configuration generator, this will create the **resources initializer**
35
36
 
36
37
  ```
37
38
  rails g resources:install
@@ -84,7 +85,31 @@ And that's it, you have to do anything else on the controller to create a **CRUD
84
85
  = f.submit "SAVE"
85
86
  ```
86
87
 
88
+ #### **FLASH - `flash`**
87
89
 
90
+ This options allows you to add a flash notice after saving or destroying a record.
91
+
92
+ ```
93
+ class Admin::CountriesController < ApplicationController
94
+ resource_for :"Country", flash: true
95
+ end
96
+ ```
97
+
98
+ By default expects this locale: `"resources.#{controller_path}.#{action_name}"`.
99
+
100
+ You can also pass a lambda to define a custom flash
101
+
102
+ ```
103
+ class Admin::CountriesController < ApplicationController
104
+ resource_for :"Country", flash: -> (resource, params, controller) do
105
+ if controller.action_name == "create"
106
+ I18n.t("flash.record_successfully_created")
107
+ else
108
+ I18n.t("flash.record_successfully_updated")
109
+ end
110
+ end
111
+ end
112
+ ```
88
113
 
89
114
  #### **RESOURCE PARAMS - `params_resource`**
90
115
 
@@ -2,6 +2,7 @@
2
2
  Resources.config do |config|
3
3
 
4
4
  config.rest_actions = true # Enable restful actions (index,new, create, etc)
5
+ config.flash = false # Show flash notice after save and destroy a record
5
6
  config.search = false # Enable ransack search object (resources_search)
6
7
  config.search_options = {distinct: false} # ransack result options. Default {distinct: false}
7
8
 
@@ -26,5 +27,5 @@ Resources.config do |config|
26
27
  # country for the resource object
27
28
  # country_saved? to know if the resource was saved
28
29
  config.resource_method_name = :resource # alias method of resource
29
- config.resources_method_name = :resources # alias method of resources, if you dont specify one it takes "resource_method_name.to_s.pluralize"
30
+ config.resources_method_name = :resources # alias method of resources, if you dont specify one it takes "resource_method_name.to_s.pluralize"
30
31
  end
@@ -2,7 +2,7 @@ module Resources
2
2
  class Configuration
3
3
 
4
4
  def self.accessors
5
- [:rest_actions, :search, :search_options, :params_search, :resource_class_name, :resource_scope, :resources_scope, :resource_method_name, :resources_method_name, :params_resource, :pagination, :params_page]
5
+ [:rest_actions, :search, :search_options, :params_search, :resource_class_name, :resource_scope, :resources_scope, :resource_method_name, :resources_method_name, :params_resource, :pagination, :params_page, :flash]
6
6
  end
7
7
  accessors.map{|a| attr_accessor a }
8
8
 
@@ -10,6 +10,7 @@ module Resources
10
10
  options = args.extract_options!
11
11
  self.rest_actions = options[:rest_actions] || true
12
12
  self.search = options[:search] || false
13
+ self.flash = options[:flash] || false
13
14
  self.search_options = options[:search_options] && options[:search_options].is_a?(Hash) ? options[:search_options] : {distinct: false}
14
15
  self.params_search = options[:params_search] || :q
15
16
  self.params_resource = options[:params_resource] || :resource
@@ -30,7 +30,7 @@ module Resources
30
30
  end
31
31
 
32
32
  def pagination?
33
- settings.pagination.is_a?(Proc) ? settings.pagination.call(params, controller) : settings.pagination
33
+ settings.pagination.respond_to?(:call) ? settings.pagination.call(params, controller) : settings.pagination
34
34
  end
35
35
 
36
36
  def resource_scope
@@ -93,7 +93,7 @@ module Resources
93
93
  raise ArgumentError.new("The class '#{settings.resource_class_name}' does not exists. Please specify a valid model") if resource_class.nil?
94
94
  scope = Rails::VERSION::MAJOR >= 4 ? resource_class.all : resource_class.scoped
95
95
  if settings.send(name)
96
- settings.send(name).is_a?(Proc) ? settings.send(name).call(scope,params,controller) : scope.send(settings.send(name))
96
+ settings.send(name).respond_to?(:call) ? settings.send(name).call(scope,params,controller) : scope.send(settings.send(name))
97
97
  else
98
98
  scope
99
99
  end
@@ -113,7 +113,7 @@ module Resources
113
113
 
114
114
  def option_with_params name
115
115
  result = {}
116
- if settings.send(name).is_a?(Proc)
116
+ if settings.send(name).respond_to?(:call)
117
117
  result = settings.send(name).call(params)
118
118
  else
119
119
  if Rails::VERSION::MAJOR >= 4
@@ -66,6 +66,13 @@ module Resources
66
66
  if block_given?
67
67
  block.call(resource)
68
68
  else
69
+ if self.class.resource_configuration.flash && request.format.html?
70
+ if self.class.resource_configuration.flash.respond_to?(:call)
71
+ flash[:notice] = self.class.resource_configuration.flash.call(resource, params, self)
72
+ else
73
+ flash[:notice] = I18n.t("resources.#{controller_path}.#{action_name}")
74
+ end
75
+ end
69
76
  if self.respond_to?(after_redirect_for, true)
70
77
  respond_with resource, location: send(after_redirect_for)
71
78
  else
@@ -80,6 +87,13 @@ module Resources
80
87
  if block_given?
81
88
  block.call(@destroy_resource)
82
89
  else
90
+ if self.class.resource_configuration.flash && request.format.html?
91
+ if self.class.resource_configuration.flash.respond_to?(:call)
92
+ flash[:notice] = self.class.resource_configuration.flash.call(resource, params, self)
93
+ else
94
+ flash[:notice] = I18n.t("resources.#{controller_path}.#{action_name}")
95
+ end
96
+ end
83
97
  if self.respond_to?(after_redirect_for, true)
84
98
  respond_with resource, location: send(after_redirect_for), action: :destroy
85
99
  else
@@ -1,3 +1,3 @@
1
1
  module Resources
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -3,6 +3,7 @@ class Admin::CountriesController < ApplicationController
3
3
  pagination: true,
4
4
  rest_actions: true,
5
5
  search: true,
6
+ flash: true,
6
7
  search_options: {distinct: true},
7
8
  params_resource: :country,
8
9
  resource_method_name: :country
@@ -1,4 +1,3 @@
1
1
  class CountriesController < ApplicationController
2
2
  resource_for "Country"
3
-
4
3
  end
@@ -1,3 +1,4 @@
1
+ %p= flash[:notice]
1
2
  = search_form_for [:admin, countries_search] do |f|
2
3
  = f.label :name_cont
3
4
  = f.search_field :name_cont
@@ -21,3 +21,6 @@
21
21
 
22
22
  en:
23
23
  hello: "Hello world"
24
+ resources:
25
+ admin/countries:
26
+ create: "country created!"
@@ -3992,3 +3992,879 @@ Completed 200 OK in 11ms (Views: 11.2ms | ActiveRecord: 0.2ms)
3992
3992
   (17.2ms) DELETE FROM "countries";
3993
3993
   (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
3994
3994
   (17.5ms) DELETE FROM sqlite_sequence where name = 'countries';
3995
+
3996
+
3997
+ Started GET "/" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
3998
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
3999
+ Processing by CountriesController#index as HTML
4000
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4001
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4002
+ Rendered countries/index.html.haml within layouts/application (286.9ms)
4003
+ Completed 200 OK in 401ms (Views: 400.4ms | ActiveRecord: 0.4ms)
4004
+
4005
+
4006
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4007
+
4008
+
4009
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4010
+
4011
+
4012
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4013
+
4014
+
4015
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4016
+
4017
+
4018
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4019
+
4020
+
4021
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:02:54 -0600
4022
+
4023
+
4024
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:02:57 -0600
4025
+ Processing by CountriesController#new as HTML
4026
+ Rendered countries/_form.html.haml (46.5ms)
4027
+ Rendered countries/new.html.haml within layouts/application (48.4ms)
4028
+ Completed 200 OK in 66ms (Views: 65.4ms | ActiveRecord: 0.3ms)
4029
+
4030
+
4031
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:04:42 -0600
4032
+ Processing by CountriesController#create as HTML
4033
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"FXvYqcolBWlnwOp0cc2wJzpdxeuAodFxqDEzkRblwd65ZnvhEjR91Z0+3T9JUPAJQ7WJc2EszDlZk9/G8wglFg==", "resource"=>{"code"=>"qeqwe", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4034
+  (0.1ms) begin transaction
4035
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "qeqwe"], ["created_at", "2015-09-02 03:04:42.238657"], ["updated_at", "2015-09-02 03:04:42.238657"]]
4036
+  (12.5ms) commit transaction
4037
+ Redirected to http://localhost:3000/countries
4038
+ Completed 302 Found in 28ms (ActiveRecord: 13.4ms)
4039
+
4040
+
4041
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:04:42 -0600
4042
+ Processing by CountriesController#index as HTML
4043
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4044
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4045
+ Rendered countries/index.html.haml within layouts/application (7.3ms)
4046
+ Completed 200 OK in 23ms (Views: 22.0ms | ActiveRecord: 0.3ms)
4047
+
4048
+
4049
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:04:48 -0600
4050
+ Processing by CountriesController#new as HTML
4051
+ Rendered countries/_form.html.haml (14.3ms)
4052
+ Rendered countries/new.html.haml within layouts/application (15.5ms)
4053
+ Completed 200 OK in 36ms (Views: 35.3ms | ActiveRecord: 0.0ms)
4054
+
4055
+
4056
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:04:51 -0600
4057
+ Processing by CountriesController#create as HTML
4058
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"yWa2mSAiJLcjvMgiQf7ThBIZ2Ul+hGhMwLr1tRurvh5lexXR+DNcC9lC/2l5Y5Oqa/GV0Z8JdQQxGBni/kZa1g==", "resource"=>{"code"=>"hhh", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4059
+  (0.1ms) begin transaction
4060
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "hhh"], ["created_at", "2015-09-02 03:04:51.239295"], ["updated_at", "2015-09-02 03:04:51.239295"]]
4061
+  (7.1ms) commit transaction
4062
+ Redirected to http://localhost:3000/countries
4063
+ Completed 302 Found in 13ms (ActiveRecord: 7.4ms)
4064
+
4065
+
4066
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:04:51 -0600
4067
+ Processing by CountriesController#index as HTML
4068
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4069
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4070
+ Rendered countries/index.html.haml within layouts/application (7.9ms)
4071
+ Completed 200 OK in 25ms (Views: 24.8ms | ActiveRecord: 0.4ms)
4072
+
4073
+
4074
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:05:27 -0600
4075
+ Processing by CountriesController#new as HTML
4076
+ Rendered countries/_form.html.haml (11.2ms)
4077
+ Rendered countries/new.html.haml within layouts/application (12.1ms)
4078
+ Completed 200 OK in 51ms (Views: 50.8ms | ActiveRecord: 0.0ms)
4079
+
4080
+
4081
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:05:30 -0600
4082
+ Processing by CountriesController#create as HTML
4083
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Icw7afH6ih3AHZbG/K8aGoCSmTaQcLQ9or9M4niP2zmN0ZghKevyoTrjoY3EMlo0+XrVrnH9qXVTHaC1nWI/8Q==", "resource"=>{"code"=>"zcxcxc", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4084
+  (0.1ms) begin transaction
4085
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "zcxcxc"], ["created_at", "2015-09-02 03:05:30.555791"], ["updated_at", "2015-09-02 03:05:30.555791"]]
4086
+  (7.7ms) commit transaction
4087
+ Redirected to http://localhost:3000/countries
4088
+ Completed 302 Found in 14ms (ActiveRecord: 8.0ms)
4089
+
4090
+
4091
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:05:30 -0600
4092
+ Processing by CountriesController#index as HTML
4093
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4094
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4095
+ Rendered countries/index.html.haml within layouts/application (10.9ms)
4096
+ Completed 200 OK in 26ms (Views: 25.7ms | ActiveRecord: 0.3ms)
4097
+
4098
+
4099
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:07:21 -0600
4100
+ Processing by CountriesController#new as HTML
4101
+ Rendered countries/_form.html.haml (13.5ms)
4102
+ Rendered countries/new.html.haml within layouts/application (14.4ms)
4103
+ Completed 200 OK in 35ms (Views: 35.1ms | ActiveRecord: 0.0ms)
4104
+
4105
+
4106
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:07:23 -0600
4107
+ Processing by CountriesController#create as HTML
4108
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"B1O04yC+/XLHJlZ+QIDPXvp8RMZiP97hfUuaPFpgnSyrTher+K+Fzj3YYTV4HY9wg5QIXoOyw6mM6XZrv4155A==", "resource"=>{"code"=>"sdfsdfsdf", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4109
+  (0.1ms) begin transaction
4110
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "sdfsdfsdf"], ["created_at", "2015-09-02 03:07:23.661578"], ["updated_at", "2015-09-02 03:07:23.661578"]]
4111
+  (18.7ms) commit transaction
4112
+ Redirected to http://localhost:3000/countries
4113
+ Completed 302 Found in 24ms (ActiveRecord: 19.0ms)
4114
+
4115
+
4116
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:07:23 -0600
4117
+ Processing by CountriesController#index as HTML
4118
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4119
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4120
+ Rendered countries/index.html.haml within layouts/application (10.4ms)
4121
+ Completed 200 OK in 32ms (Views: 31.9ms | ActiveRecord: 0.4ms)
4122
+
4123
+
4124
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:07:37 -0600
4125
+ Processing by CountriesController#new as HTML
4126
+ Rendered countries/_form.html.haml (26.9ms)
4127
+ Rendered countries/new.html.haml within layouts/application (27.6ms)
4128
+ Completed 200 OK in 47ms (Views: 46.4ms | ActiveRecord: 0.6ms)
4129
+
4130
+
4131
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:07:39 -0600
4132
+ Processing by CountriesController#create as HTML
4133
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"41gqeMLJDSaq6i/+HyEZp2j671wAla9+dv3SNHT5xTBPRYkwGth1mlAUGLUnvFmJERKjxOEYsjaHXz5jkRQh+A==", "resource"=>{"code"=>"werwer", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4134
+  (0.1ms) begin transaction
4135
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "werwer"], ["created_at", "2015-09-02 03:07:39.179491"], ["updated_at", "2015-09-02 03:07:39.179491"]]
4136
+  (17.7ms) commit transaction
4137
+ Redirected to http://localhost:3000/countries
4138
+ Completed 302 Found in 27ms (ActiveRecord: 18.1ms)
4139
+
4140
+
4141
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:07:39 -0600
4142
+ Processing by CountriesController#index as HTML
4143
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4144
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4145
+ Rendered countries/index.html.haml within layouts/application (10.9ms)
4146
+ Completed 200 OK in 35ms (Views: 34.1ms | ActiveRecord: 0.3ms)
4147
+
4148
+
4149
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4150
+ Processing by CountriesController#index as HTML
4151
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4152
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4153
+ Rendered countries/index.html.haml within layouts/application (12.8ms)
4154
+ Completed 200 OK in 36ms (Views: 35.5ms | ActiveRecord: 0.4ms)
4155
+
4156
+
4157
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4158
+
4159
+
4160
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4161
+
4162
+
4163
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4164
+
4165
+
4166
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4167
+
4168
+
4169
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4170
+
4171
+
4172
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:07:46 -0600
4173
+
4174
+
4175
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:07:48 -0600
4176
+ Processing by CountriesController#new as HTML
4177
+ Rendered countries/_form.html.haml (17.0ms)
4178
+ Rendered countries/new.html.haml within layouts/application (18.2ms)
4179
+ Completed 200 OK in 38ms (Views: 37.4ms | ActiveRecord: 0.0ms)
4180
+
4181
+
4182
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:07:50 -0600
4183
+ Processing by CountriesController#create as HTML
4184
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"gJ6bXDAQQMnArOQCyVXPVrwuA1pp6Fv+Kjk3Sux/zQYsgzgU6AE4dTpS00nxyI94xcZPwohlRrbbm9sdCZIpzg==", "resource"=>{"code"=>"", "name"=>"werwer", "active"=>""}, "commit"=>"SAVE"}
4185
+  (0.1ms) begin transaction
4186
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "werwer"], ["code", ""], ["created_at", "2015-09-02 03:07:50.907850"], ["updated_at", "2015-09-02 03:07:50.907850"]]
4187
+  (16.6ms) commit transaction
4188
+ Redirected to http://localhost:3000/countries
4189
+ Completed 302 Found in 23ms (ActiveRecord: 16.9ms)
4190
+
4191
+
4192
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:07:50 -0600
4193
+ Processing by CountriesController#index as HTML
4194
+ Country Load (0.2ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4195
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4196
+ Rendered countries/index.html.haml within layouts/application (9.4ms)
4197
+ Completed 200 OK in 27ms (Views: 26.6ms | ActiveRecord: 0.4ms)
4198
+
4199
+
4200
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:08:31 -0600
4201
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4202
+ Processing by CountriesController#new as HTML
4203
+ Rendered countries/_form.html.haml (282.6ms)
4204
+ Rendered countries/new.html.haml within layouts/application (287.3ms)
4205
+ Completed 200 OK in 384ms (Views: 383.4ms | ActiveRecord: 0.4ms)
4206
+
4207
+
4208
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:08:35 -0600
4209
+ Processing by CountriesController#create as HTML
4210
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"2FeDQi5ou+91sodFUiNppqmRhqK0FZJEtKIBw2l7/X90SiAK9nnDU49MsA5qvimI0HnKOlWYjwxFAO2UjJYZtw==", "resource"=>{"code"=>"", "name"=>"hhh", "active"=>""}, "commit"=>"SAVE"}
4211
+  (0.1ms) begin transaction
4212
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hhh"], ["code", ""], ["created_at", "2015-09-02 03:08:35.852087"], ["updated_at", "2015-09-02 03:08:35.852087"]]
4213
+  (14.1ms) commit transaction
4214
+ Redirected to http://localhost:3000/countries
4215
+ Completed 302 Found in 26ms (ActiveRecord: 14.5ms)
4216
+
4217
+
4218
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:08:35 -0600
4219
+ Processing by CountriesController#index as HTML
4220
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4221
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4222
+ Rendered countries/index.html.haml within layouts/application (19.1ms)
4223
+ Completed 200 OK in 44ms (Views: 43.8ms | ActiveRecord: 0.4ms)
4224
+
4225
+
4226
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:08:37 -0600
4227
+ Processing by CountriesController#new as HTML
4228
+ Rendered countries/_form.html.haml (22.7ms)
4229
+ Rendered countries/new.html.haml within layouts/application (23.5ms)
4230
+ Completed 200 OK in 48ms (Views: 48.1ms | ActiveRecord: 0.0ms)
4231
+
4232
+
4233
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:08:40 -0600
4234
+ Processing by CountriesController#create as HTML
4235
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"532KpnNsHTUJQ9E2KChtcA+ti2xIPv5Uk9Y2JPE8KP9LYCnuq31lifO95n0QtS1edkXH9Kmz4xxidNpzFNHMNw==", "resource"=>{"code"=>"ttttt", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4236
+  (0.1ms) begin transaction
4237
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "ttttt"], ["created_at", "2015-09-02 03:08:40.203683"], ["updated_at", "2015-09-02 03:08:40.203683"]]
4238
+  (7.2ms) commit transaction
4239
+ Redirected to http://localhost:3000/countries
4240
+ Completed 302 Found in 14ms (ActiveRecord: 7.5ms)
4241
+
4242
+
4243
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:08:40 -0600
4244
+ Processing by CountriesController#index as HTML
4245
+ Country Load (0.4ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4246
+  (0.2ms) SELECT COUNT(*) FROM "countries"
4247
+ Rendered countries/index.html.haml within layouts/application (13.5ms)
4248
+ Completed 200 OK in 37ms (Views: 36.8ms | ActiveRecord: 0.5ms)
4249
+
4250
+
4251
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:08:53 -0600
4252
+ Processing by CountriesController#new as HTML
4253
+ Rendered countries/_form.html.haml (20.7ms)
4254
+ Rendered countries/new.html.haml within layouts/application (21.8ms)
4255
+ Completed 200 OK in 44ms (Views: 43.2ms | ActiveRecord: 0.5ms)
4256
+
4257
+
4258
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:08:55 -0600
4259
+ Processing by CountriesController#create as HTML
4260
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"CSnP9MFwMvAf5ee09lki2aa3tTrTMKd1kZfhsqWz8qWlNGy8GWFKTOUb0P/OxGL331/5ojK9uj1gNQ3lQF4WbQ==", "resource"=>{"code"=>"", "name"=>"dfgdfgdfg", "active"=>""}, "commit"=>"SAVE"}
4261
+  (0.1ms) begin transaction
4262
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "dfgdfgdfg"], ["code", ""], ["created_at", "2015-09-02 03:08:55.856803"], ["updated_at", "2015-09-02 03:08:55.856803"]]
4263
+  (7.8ms) commit transaction
4264
+ Completed 500 Internal Server Error in 24ms (ActiveRecord: 8.2ms)
4265
+
4266
+ NameError (undefined local variable or method `resquest' for #<CountriesController:0x007f4518c94258>):
4267
+ /home/shared-data/projects/ruby/engines/resources/lib/resources/rest_actions.rb:69:in `save_resource'
4268
+ /home/shared-data/projects/ruby/engines/resources/lib/resources/rest_actions.rb:29:in `create'
4269
+ actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4270
+ actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'
4271
+ actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
4272
+ actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4273
+ activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'
4274
+ activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'
4275
+ activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
4276
+ activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'
4277
+ activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'
4278
+ activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'
4279
+ activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
4280
+ activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
4281
+ actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
4282
+ actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
4283
+ actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
4284
+ activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'
4285
+ activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4286
+ activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'
4287
+ actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4288
+ actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4289
+ activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4290
+ actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'
4291
+ actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'
4292
+ actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'
4293
+ actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4294
+ actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'
4295
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'
4296
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
4297
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
4298
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
4299
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'
4300
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'
4301
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'
4302
+ rack (1.6.0) lib/rack/etag.rb:24:in `call'
4303
+ rack (1.6.0) lib/rack/conditionalget.rb:38:in `call'
4304
+ rack (1.6.0) lib/rack/head.rb:13:in `call'
4305
+ actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4306
+ actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
4307
+ rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
4308
+ rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
4309
+ actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4310
+ activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'
4311
+ activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
4312
+ activerecord (4.2.1) lib/active_record/migration.rb:378:in `call'
4313
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4314
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'
4315
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
4316
+ activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
4317
+ activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
4318
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4319
+ actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4320
+ actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
4321
+ actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4322
+ actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4323
+ railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
4324
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
4325
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4326
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
4327
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
4328
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
4329
+ actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4330
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
4331
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
4332
+ activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
4333
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
4334
+ actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'
4335
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
4336
+ railties (4.2.1) lib/rails/engine.rb:518:in `call'
4337
+ railties (4.2.1) lib/rails/application.rb:164:in `call'
4338
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
4339
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
4340
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
4341
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
4342
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
4343
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
4344
+
4345
+
4346
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.4ms)
4347
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.3ms)
4348
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
4349
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.6ms)
4350
+
4351
+
4352
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:09:13 -0600
4353
+ Processing by CountriesController#create as HTML
4354
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"CSnP9MFwMvAf5ee09lki2aa3tTrTMKd1kZfhsqWz8qWlNGy8GWFKTOUb0P/OxGL331/5ojK9uj1gNQ3lQF4WbQ==", "resource"=>{"code"=>"", "name"=>"dfgdfgdfg", "active"=>""}, "commit"=>"SAVE"}
4355
+  (0.1ms) begin transaction
4356
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "dfgdfgdfg"], ["code", ""], ["created_at", "2015-09-02 03:09:13.714590"], ["updated_at", "2015-09-02 03:09:13.714590"]]
4357
+  (13.0ms) commit transaction
4358
+ Completed 500 Internal Server Error in 26ms (ActiveRecord: 13.3ms)
4359
+
4360
+ NameError (undefined local variable or method `resquest' for #<CountriesController:0x007f4518fbc098>):
4361
+ /home/shared-data/projects/ruby/engines/resources/lib/resources/rest_actions.rb:69:in `save_resource'
4362
+ /home/shared-data/projects/ruby/engines/resources/lib/resources/rest_actions.rb:29:in `create'
4363
+ actionpack (4.2.1) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
4364
+ actionpack (4.2.1) lib/abstract_controller/base.rb:198:in `process_action'
4365
+ actionpack (4.2.1) lib/action_controller/metal/rendering.rb:10:in `process_action'
4366
+ actionpack (4.2.1) lib/abstract_controller/callbacks.rb:20:in `block in process_action'
4367
+ activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'
4368
+ activesupport (4.2.1) lib/active_support/callbacks.rb:117:in `call'
4369
+ activesupport (4.2.1) lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
4370
+ activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'
4371
+ activesupport (4.2.1) lib/active_support/callbacks.rb:505:in `call'
4372
+ activesupport (4.2.1) lib/active_support/callbacks.rb:92:in `_run_callbacks'
4373
+ activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_process_action_callbacks'
4374
+ activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
4375
+ actionpack (4.2.1) lib/abstract_controller/callbacks.rb:19:in `process_action'
4376
+ actionpack (4.2.1) lib/action_controller/metal/rescue.rb:29:in `process_action'
4377
+ actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
4378
+ activesupport (4.2.1) lib/active_support/notifications.rb:164:in `block in instrument'
4379
+ activesupport (4.2.1) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
4380
+ activesupport (4.2.1) lib/active_support/notifications.rb:164:in `instrument'
4381
+ actionpack (4.2.1) lib/action_controller/metal/instrumentation.rb:30:in `process_action'
4382
+ actionpack (4.2.1) lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
4383
+ activerecord (4.2.1) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
4384
+ actionpack (4.2.1) lib/abstract_controller/base.rb:137:in `process'
4385
+ actionview (4.2.1) lib/action_view/rendering.rb:30:in `process'
4386
+ actionpack (4.2.1) lib/action_controller/metal.rb:196:in `dispatch'
4387
+ actionpack (4.2.1) lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
4388
+ actionpack (4.2.1) lib/action_controller/metal.rb:237:in `block in action'
4389
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `call'
4390
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
4391
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:43:in `serve'
4392
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:43:in `block in serve'
4393
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `each'
4394
+ actionpack (4.2.1) lib/action_dispatch/journey/router.rb:30:in `serve'
4395
+ actionpack (4.2.1) lib/action_dispatch/routing/route_set.rb:819:in `call'
4396
+ rack (1.6.0) lib/rack/etag.rb:24:in `call'
4397
+ rack (1.6.0) lib/rack/conditionalget.rb:38:in `call'
4398
+ rack (1.6.0) lib/rack/head.rb:13:in `call'
4399
+ actionpack (4.2.1) lib/action_dispatch/middleware/params_parser.rb:27:in `call'
4400
+ actionpack (4.2.1) lib/action_dispatch/middleware/flash.rb:260:in `call'
4401
+ rack (1.6.0) lib/rack/session/abstract/id.rb:225:in `context'
4402
+ rack (1.6.0) lib/rack/session/abstract/id.rb:220:in `call'
4403
+ actionpack (4.2.1) lib/action_dispatch/middleware/cookies.rb:560:in `call'
4404
+ activerecord (4.2.1) lib/active_record/query_cache.rb:36:in `call'
4405
+ activerecord (4.2.1) lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
4406
+ activerecord (4.2.1) lib/active_record/migration.rb:378:in `call'
4407
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
4408
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `call'
4409
+ activesupport (4.2.1) lib/active_support/callbacks.rb:88:in `_run_callbacks'
4410
+ activesupport (4.2.1) lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
4411
+ activesupport (4.2.1) lib/active_support/callbacks.rb:81:in `run_callbacks'
4412
+ actionpack (4.2.1) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
4413
+ actionpack (4.2.1) lib/action_dispatch/middleware/reloader.rb:73:in `call'
4414
+ actionpack (4.2.1) lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
4415
+ actionpack (4.2.1) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
4416
+ actionpack (4.2.1) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
4417
+ railties (4.2.1) lib/rails/rack/logger.rb:38:in `call_app'
4418
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `block in call'
4419
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `block in tagged'
4420
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:26:in `tagged'
4421
+ activesupport (4.2.1) lib/active_support/tagged_logging.rb:68:in `tagged'
4422
+ railties (4.2.1) lib/rails/rack/logger.rb:20:in `call'
4423
+ actionpack (4.2.1) lib/action_dispatch/middleware/request_id.rb:21:in `call'
4424
+ rack (1.6.0) lib/rack/methodoverride.rb:22:in `call'
4425
+ rack (1.6.0) lib/rack/runtime.rb:18:in `call'
4426
+ activesupport (4.2.1) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
4427
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
4428
+ actionpack (4.2.1) lib/action_dispatch/middleware/static.rb:113:in `call'
4429
+ rack (1.6.0) lib/rack/sendfile.rb:113:in `call'
4430
+ railties (4.2.1) lib/rails/engine.rb:518:in `call'
4431
+ railties (4.2.1) lib/rails/application.rb:164:in `call'
4432
+ rack (1.6.0) lib/rack/lock.rb:17:in `call'
4433
+ rack (1.6.0) lib/rack/content_length.rb:15:in `call'
4434
+ rack (1.6.0) lib/rack/handler/webrick.rb:89:in `service'
4435
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
4436
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
4437
+ /home/developer/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
4438
+
4439
+
4440
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (5.6ms)
4441
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.5ms)
4442
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (0.9ms)
4443
+ Rendered /home/developer/.rvm/gems/ruby-2.2.3@rails4/gems/actionpack-4.2.1/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (25.7ms)
4444
+
4445
+
4446
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:09:24 -0600
4447
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4448
+ Processing by CountriesController#create as HTML
4449
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"CSnP9MFwMvAf5ee09lki2aa3tTrTMKd1kZfhsqWz8qWlNGy8GWFKTOUb0P/OxGL331/5ojK9uj1gNQ3lQF4WbQ==", "resource"=>{"code"=>"", "name"=>"dfgdfgdfg", "active"=>""}, "commit"=>"SAVE"}
4450
+  (0.1ms) begin transaction
4451
+ SQL (0.4ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "dfgdfgdfg"], ["code", ""], ["created_at", "2015-09-02 03:09:24.820141"], ["updated_at", "2015-09-02 03:09:24.820141"]]
4452
+  (20.5ms) commit transaction
4453
+ Redirected to http://localhost:3000/countries
4454
+ Completed 302 Found in 315ms (ActiveRecord: 21.3ms)
4455
+
4456
+
4457
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4458
+ Processing by CountriesController#index as HTML
4459
+ Country Load (0.1ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4460
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4461
+ Rendered countries/index.html.haml within layouts/application (11.1ms)
4462
+ Completed 200 OK in 86ms (Views: 85.9ms | ActiveRecord: 0.2ms)
4463
+
4464
+
4465
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4466
+
4467
+
4468
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4469
+
4470
+
4471
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4472
+
4473
+
4474
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4475
+
4476
+
4477
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4478
+
4479
+
4480
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:09:25 -0600
4481
+
4482
+
4483
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:09:29 -0600
4484
+ Processing by CountriesController#new as HTML
4485
+ Rendered countries/_form.html.haml (41.5ms)
4486
+ Rendered countries/new.html.haml within layouts/application (43.3ms)
4487
+ Completed 200 OK in 63ms (Views: 63.2ms | ActiveRecord: 0.0ms)
4488
+
4489
+
4490
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:09:31 -0600
4491
+ Processing by CountriesController#create as HTML
4492
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"pso6n6ZGkWwctRfXcL003Qnr64uv7EMRDusyt2KA8QAK15nXflfp0OZLIJxIIHTzcAOnE05hXln/Sd7gh20VyA==", "resource"=>{"code"=>"", "name"=>"eeee", "active"=>""}, "commit"=>"SAVE"}
4493
+  (0.1ms) begin transaction
4494
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "eeee"], ["code", ""], ["created_at", "2015-09-02 03:09:31.221559"], ["updated_at", "2015-09-02 03:09:31.221559"]]
4495
+  (18.2ms) commit transaction
4496
+ Redirected to http://localhost:3000/countries
4497
+ Completed 302 Found in 24ms (ActiveRecord: 18.6ms)
4498
+
4499
+
4500
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:09:31 -0600
4501
+ Processing by CountriesController#index as HTML
4502
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4503
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4504
+ Rendered countries/index.html.haml within layouts/application (11.0ms)
4505
+ Completed 200 OK in 32ms (Views: 31.3ms | ActiveRecord: 0.5ms)
4506
+
4507
+
4508
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:09:42 -0600
4509
+ Processing by CountriesController#new as HTML
4510
+ Rendered countries/_form.html.haml (17.5ms)
4511
+ Rendered countries/new.html.haml within layouts/application (18.3ms)
4512
+ Completed 200 OK in 37ms (Views: 36.2ms | ActiveRecord: 0.6ms)
4513
+
4514
+
4515
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:09:44 -0600
4516
+ Processing by CountriesController#create as HTML
4517
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"YYshgSGnQlhUvE4EaLCYSqZB1VX/0sHbD3QYFP3prn7NloLJ+bY65K5CeU9QLdhk36mZzR5f3JP+1vRDGARKtg==", "resource"=>{"code"=>"", "name"=>"sss", "active"=>""}, "commit"=>"SAVE"}
4518
+  (0.1ms) begin transaction
4519
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "sss"], ["code", ""], ["created_at", "2015-09-02 03:09:44.659954"], ["updated_at", "2015-09-02 03:09:44.659954"]]
4520
+  (16.7ms) commit transaction
4521
+ Redirected to http://localhost:3000/countries
4522
+ Completed 302 Found in 24ms (ActiveRecord: 17.1ms)
4523
+
4524
+
4525
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:09:44 -0600
4526
+ Processing by CountriesController#index as HTML
4527
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4528
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4529
+ Rendered countries/index.html.haml within layouts/application (11.7ms)
4530
+ Completed 200 OK in 30ms (Views: 29.4ms | ActiveRecord: 0.4ms)
4531
+
4532
+
4533
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:16:39 -0600
4534
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4535
+ Processing by CountriesController#new as HTML
4536
+ Rendered countries/_form.html.haml (267.6ms)
4537
+ Rendered countries/new.html.haml within layouts/application (271.9ms)
4538
+ Completed 200 OK in 354ms (Views: 353.3ms | ActiveRecord: 0.5ms)
4539
+
4540
+
4541
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:16:49 -0600
4542
+ Processing by CountriesController#create as HTML
4543
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"P0qzFcZW/9/4/ah3mGY/RL6c0H5fXpW5Ab3YoFQMSJiTVxBdHkeHYwIDnzyg+39qx3Sc5r7TiPHwHzT3seGsUA==", "resource"=>{"code"=>"cxvxcv", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4544
+  (0.1ms) begin transaction
4545
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "cxvxcv"], ["created_at", "2015-09-02 03:16:49.340272"], ["updated_at", "2015-09-02 03:16:49.340272"]]
4546
+  (7.0ms) commit transaction
4547
+ Redirected to http://localhost:3000/countries
4548
+ Completed 302 Found in 20ms (ActiveRecord: 7.4ms)
4549
+
4550
+
4551
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:16:49 -0600
4552
+ Processing by CountriesController#index as HTML
4553
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4554
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4555
+ Rendered countries/index.html.haml within layouts/application (21.6ms)
4556
+ Completed 200 OK in 42ms (Views: 41.6ms | ActiveRecord: 0.4ms)
4557
+
4558
+
4559
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:26:52 -0600
4560
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4561
+ Processing by CountriesController#new as HTML
4562
+ Rendered countries/_form.html.haml (280.2ms)
4563
+ Rendered countries/new.html.haml within layouts/application (285.1ms)
4564
+ Completed 200 OK in 369ms (Views: 368.8ms | ActiveRecord: 0.4ms)
4565
+
4566
+
4567
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:26:54 -0600
4568
+ Processing by CountriesController#create as HTML
4569
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"ytaRhijlT5oqnCBya5ZNOQQKjJhVQBll7Coc4EXWMwpmyzLO8PQ3JtBiFzlTCw0XfeLAALTNBC0diPC3oDvXwg==", "resource"=>{"code"=>"sssss", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4570
+  (0.2ms) begin transaction
4571
+ SQL (0.4ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "sssss"], ["created_at", "2015-09-02 03:26:54.868625"], ["updated_at", "2015-09-02 03:26:54.868625"]]
4572
+  (21.9ms) commit transaction
4573
+ Redirected to http://localhost:3000/countries
4574
+ Completed 302 Found in 35ms (ActiveRecord: 22.4ms)
4575
+
4576
+
4577
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:26:54 -0600
4578
+ Processing by CountriesController#index as HTML
4579
+ Country Load (0.4ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4580
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4581
+ Rendered countries/index.html.haml within layouts/application (22.4ms)
4582
+ Completed 200 OK in 43ms (Views: 42.7ms | ActiveRecord: 0.5ms)
4583
+
4584
+
4585
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:32:50 -0600
4586
+ Processing by CountriesController#new as HTML
4587
+ Rendered countries/_form.html.haml (22.1ms)
4588
+ Rendered countries/new.html.haml within layouts/application (22.9ms)
4589
+ Completed 200 OK in 44ms (Views: 43.5ms | ActiveRecord: 0.6ms)
4590
+
4591
+
4592
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:32:53 -0600
4593
+ Processing by CountriesController#create as HTML
4594
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"nsGTUdHtI047+TjUPlYid/kEq++Q5lhHbzj6Letk5QIy3DAZCfxb8sEHD58Gy2JZgOznd3FrRQ+emhZ6DokByg==", "resource"=>{"code"=>"", "name"=>"hhhh", "active"=>""}, "commit"=>"SAVE"}
4595
+  (0.1ms) begin transaction
4596
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hhhh"], ["code", ""], ["created_at", "2015-09-02 03:32:53.995801"], ["updated_at", "2015-09-02 03:32:53.995801"]]
4597
+  (7.6ms) commit transaction
4598
+ Redirected to http://localhost:3000/countries
4599
+ Completed 302 Found in 15ms (ActiveRecord: 8.0ms)
4600
+
4601
+
4602
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:32:54 -0600
4603
+ Processing by CountriesController#index as HTML
4604
+ Country Load (0.3ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4605
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4606
+ Rendered countries/index.html.haml within layouts/application (15.0ms)
4607
+ Completed 200 OK in 41ms (Views: 40.7ms | ActiveRecord: 0.4ms)
4608
+
4609
+
4610
+ Started GET "/countries/new" for 127.0.0.1 at 2015-09-01 21:37:28 -0600
4611
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
4612
+ Processing by CountriesController#new as HTML
4613
+ Rendered countries/_form.html.haml (289.3ms)
4614
+ Rendered countries/new.html.haml within layouts/application (293.6ms)
4615
+ Completed 200 OK in 371ms (Views: 370.9ms | ActiveRecord: 0.4ms)
4616
+
4617
+
4618
+ Started POST "/countries" for 127.0.0.1 at 2015-09-01 21:37:32 -0600
4619
+ Processing by CountriesController#create as HTML
4620
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"Wz3rv+9xtzg6nD6flzGtYVkf4USOPlp6iJCzOKTvgm/3IEj3N2DPhMBiCdSvrO1PIPet3G+zRzJ5Ml9vQQJmpw==", "resource"=>{"code"=>"", "name"=>"hhhh", "active"=>""}, "commit"=>"SAVE"}
4621
+  (0.1ms) begin transaction
4622
+ SQL (0.4ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hhhh"], ["code", ""], ["created_at", "2015-09-02 03:37:32.158049"], ["updated_at", "2015-09-02 03:37:32.158049"]]
4623
+  (7.2ms) commit transaction
4624
+ Redirected to http://localhost:3000/countries
4625
+ Completed 302 Found in 18ms (ActiveRecord: 7.8ms)
4626
+
4627
+
4628
+ Started GET "/countries" for 127.0.0.1 at 2015-09-01 21:37:32 -0600
4629
+ Processing by CountriesController#index as HTML
4630
+ Country Load (0.5ms) SELECT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4631
+  (0.1ms) SELECT COUNT(*) FROM "countries"
4632
+ Rendered countries/index.html.haml within layouts/application (20.9ms)
4633
+ Completed 200 OK in 41ms (Views: 40.0ms | ActiveRecord: 0.6ms)
4634
+
4635
+
4636
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:37:41 -0600
4637
+ Processing by Admin::CountriesController#index as HTML
4638
+ Country Load (0.7ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4639
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4640
+ Rendered admin/countries/index.html.haml within layouts/application (17.5ms)
4641
+ Completed 200 OK in 37ms (Views: 35.9ms | ActiveRecord: 1.0ms)
4642
+
4643
+
4644
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:37:43 -0600
4645
+ Processing by Admin::CountriesController#new as HTML
4646
+ Rendered admin/countries/_form.html.haml (13.2ms)
4647
+ Rendered admin/countries/new.html.haml within layouts/application (15.2ms)
4648
+ Completed 200 OK in 35ms (Views: 34.6ms | ActiveRecord: 0.0ms)
4649
+
4650
+
4651
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:37:45 -0600
4652
+ Processing by Admin::CountriesController#create as HTML
4653
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"5VOlOU5w+GQHbQNA+xqShNqvYXZ4VTawJzb67XHtFlJJTgZxlmGA2P2TNAvDh9Kqo0ct7pnYK/jWlBa6lADymg==", "country"=>{"code"=>"", "name"=>"sdsdsd", "active"=>""}, "commit"=>"SAVE"}
4654
+  (0.1ms) begin transaction
4655
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "sdsdsd"], ["code", ""], ["created_at", "2015-09-02 03:37:45.083913"], ["updated_at", "2015-09-02 03:37:45.083913"]]
4656
+  (7.0ms) commit transaction
4657
+ Redirected to http://localhost:3000/admin/countries
4658
+ Completed 302 Found in 13ms (ActiveRecord: 7.3ms)
4659
+
4660
+
4661
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:37:45 -0600
4662
+ Processing by Admin::CountriesController#index as HTML
4663
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4664
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4665
+ Rendered admin/countries/index.html.haml within layouts/application (12.6ms)
4666
+ Completed 200 OK in 36ms (Views: 35.7ms | ActiveRecord: 0.5ms)
4667
+
4668
+
4669
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:38:17 -0600
4670
+ Processing by Admin::CountriesController#new as HTML
4671
+ Rendered admin/countries/_form.html.haml (15.9ms)
4672
+ Rendered admin/countries/new.html.haml within layouts/application (16.7ms)
4673
+ Completed 200 OK in 33ms (Views: 32.6ms | ActiveRecord: 0.5ms)
4674
+
4675
+
4676
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:38:18 -0600
4677
+ Processing by Admin::CountriesController#create as HTML
4678
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"wXdulHzFiXMs6IyN23F5qInJAi4ZaM7LG1KjViOPa9Jtas3cpNTxz9YWu8bj7DmG8CFOtvjl04Pq8E8BxmKPGg==", "country"=>{"code"=>"", "name"=>"asdasd", "active"=>""}, "commit"=>"SAVE"}
4679
+  (0.1ms) begin transaction
4680
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "asdasd"], ["code", ""], ["created_at", "2015-09-02 03:38:18.934122"], ["updated_at", "2015-09-02 03:38:18.934122"]]
4681
+  (16.8ms) commit transaction
4682
+ Redirected to http://localhost:3000/admin/countries
4683
+ Completed 302 Found in 23ms (ActiveRecord: 17.2ms)
4684
+
4685
+
4686
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:38:18 -0600
4687
+ Processing by Admin::CountriesController#index as HTML
4688
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4689
+  (0.2ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4690
+ Rendered admin/countries/index.html.haml within layouts/application (13.3ms)
4691
+ Completed 200 OK in 35ms (Views: 34.2ms | ActiveRecord: 0.5ms)
4692
+
4693
+
4694
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:38:34 -0600
4695
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
4696
+ Processing by Admin::CountriesController#new as HTML
4697
+ Rendered admin/countries/_form.html.haml (273.9ms)
4698
+ Rendered admin/countries/new.html.haml within layouts/application (279.6ms)
4699
+ Completed 200 OK in 364ms (Views: 362.9ms | ActiveRecord: 0.4ms)
4700
+
4701
+
4702
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:38:55 -0600
4703
+ Processing by Admin::CountriesController#create as HTML
4704
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"botvJlBkJGPUxTRTsmb1UY7oa18wZelzD0iqm0OLy/HClsxuiHVc3y47AxiK+7V/9wAnx9Ho9Dv+6kbMpmYvOQ==", "country"=>{"code"=>"", "name"=>"dsdfsdf", "active"=>""}, "commit"=>"SAVE"}
4705
+  (0.2ms) begin transaction
4706
+ SQL (0.4ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "dsdfsdf"], ["code", ""], ["created_at", "2015-09-02 03:38:55.529592"], ["updated_at", "2015-09-02 03:38:55.529592"]]
4707
+  (12.7ms) commit transaction
4708
+ Redirected to http://localhost:3000/admin/countries
4709
+ Completed 302 Found in 25ms (ActiveRecord: 13.3ms)
4710
+
4711
+
4712
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:38:55 -0600
4713
+ Processing by Admin::CountriesController#index as HTML
4714
+ Country Load (0.4ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4715
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4716
+ Rendered admin/countries/index.html.haml within layouts/application (20.7ms)
4717
+ Completed 200 OK in 41ms (Views: 39.8ms | ActiveRecord: 0.6ms)
4718
+
4719
+
4720
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:41:19 -0600
4721
+ Processing by Admin::CountriesController#index as HTML
4722
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4723
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4724
+ Rendered admin/countries/index.html.haml within layouts/application (19.7ms)
4725
+ Completed 200 OK in 52ms (Views: 51.6ms | ActiveRecord: 0.6ms)
4726
+
4727
+
4728
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4729
+
4730
+
4731
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4732
+
4733
+
4734
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4735
+
4736
+
4737
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4738
+
4739
+
4740
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4741
+
4742
+
4743
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:20 -0600
4744
+
4745
+
4746
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4747
+ Processing by Admin::CountriesController#index as HTML
4748
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4749
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4750
+ Rendered admin/countries/index.html.haml within layouts/application (17.8ms)
4751
+ Completed 200 OK in 44ms (Views: 43.3ms | ActiveRecord: 0.6ms)
4752
+
4753
+
4754
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4755
+
4756
+
4757
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4758
+
4759
+
4760
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4761
+
4762
+
4763
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4764
+
4765
+
4766
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4767
+
4768
+
4769
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:41:21 -0600
4770
+
4771
+
4772
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:41:22 -0600
4773
+ Processing by Admin::CountriesController#new as HTML
4774
+ Rendered admin/countries/_form.html.haml (14.0ms)
4775
+ Rendered admin/countries/new.html.haml within layouts/application (15.1ms)
4776
+ Completed 200 OK in 41ms (Views: 41.0ms | ActiveRecord: 0.0ms)
4777
+
4778
+
4779
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:41:25 -0600
4780
+ Processing by Admin::CountriesController#create as HTML
4781
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"blf1iZJ01Qlt82Fm1Br1TyegOghFqYwNUT9nZfsO/pDCSlbBSmWttZcNVi3sh7VhXkh2kKQkkUWgnYsyHuMaWA==", "country"=>{"code"=>"", "name"=>"hh", "active"=>""}, "commit"=>"SAVE"}
4782
+  (0.1ms) begin transaction
4783
+ SQL (0.2ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hh"], ["code", ""], ["created_at", "2015-09-02 03:41:25.310303"], ["updated_at", "2015-09-02 03:41:25.310303"]]
4784
+  (7.0ms) commit transaction
4785
+ Redirected to http://localhost:3000/admin/countries
4786
+ Completed 302 Found in 13ms (ActiveRecord: 7.3ms)
4787
+
4788
+
4789
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:41:25 -0600
4790
+ Processing by Admin::CountriesController#index as HTML
4791
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4792
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4793
+ Rendered admin/countries/index.html.haml within layouts/application (15.7ms)
4794
+ Completed 200 OK in 43ms (Views: 42.5ms | ActiveRecord: 0.6ms)
4795
+
4796
+
4797
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4798
+ Processing by Admin::CountriesController#index as HTML
4799
+ Country Load (0.2ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4800
+  (0.1ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4801
+ Rendered admin/countries/index.html.haml within layouts/application (266.6ms)
4802
+ Completed 200 OK in 277ms (Views: 276.0ms | ActiveRecord: 0.8ms)
4803
+
4804
+
4805
+ Started GET "/assets/admin/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4806
+
4807
+
4808
+ Started GET "/assets/application.self-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4809
+
4810
+
4811
+ Started GET "/assets/countries.self-b60acab5af8d245ed2b3012f77d11d8d207d8eada27756badaf4ef05770d60f6.css?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4812
+
4813
+
4814
+ Started GET "/assets/application.self-fb28094035fc8f155b896e47c199355db7c84fc9d6214ed9800f1022ac2ece52.js?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4815
+
4816
+
4817
+ Started GET "/assets/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4818
+
4819
+
4820
+ Started GET "/assets/admin/countries.self-19a187bec6cdb96d6de80a61c16c857c613536adf9138476bd367db38d282635.js?body=1" for 127.0.0.1 at 2015-09-01 21:42:05 -0600
4821
+
4822
+
4823
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:42:07 -0600
4824
+ Processing by Admin::CountriesController#new as HTML
4825
+ Rendered admin/countries/_form.html.haml (14.5ms)
4826
+ Rendered admin/countries/new.html.haml within layouts/application (15.6ms)
4827
+ Completed 200 OK in 36ms (Views: 36.0ms | ActiveRecord: 0.0ms)
4828
+
4829
+
4830
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:42:09 -0600
4831
+ Processing by Admin::CountriesController#create as HTML
4832
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"puuRJxF5goBCdC7e8/og51aQPKxUFwwFWp9aXZu8+rMK9jJvyWj6PLiKGZXLZ2DJL3hwNLWaEU2rPbYKflEeew==", "country"=>{"code"=>"asdasd", "name"=>"", "active"=>""}, "commit"=>"SAVE"}
4833
+  (0.1ms) begin transaction
4834
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", ""], ["code", "asdasd"], ["created_at", "2015-09-02 03:42:09.535049"], ["updated_at", "2015-09-02 03:42:09.535049"]]
4835
+  (13.4ms) commit transaction
4836
+ Redirected to http://localhost:3000/admin/countries
4837
+ Completed 302 Found in 20ms (ActiveRecord: 13.8ms)
4838
+
4839
+
4840
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:42:09 -0600
4841
+ Processing by Admin::CountriesController#index as HTML
4842
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4843
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4844
+ Rendered admin/countries/index.html.haml within layouts/application (12.6ms)
4845
+ Completed 200 OK in 31ms (Views: 30.2ms | ActiveRecord: 0.6ms)
4846
+
4847
+
4848
+ Started GET "/admin/countries/new" for 127.0.0.1 at 2015-09-01 21:42:30 -0600
4849
+ Processing by Admin::CountriesController#new as HTML
4850
+ Rendered admin/countries/_form.html.haml (243.9ms)
4851
+ Rendered admin/countries/new.html.haml within layouts/application (244.6ms)
4852
+ Completed 200 OK in 255ms (Views: 254.1ms | ActiveRecord: 0.6ms)
4853
+
4854
+
4855
+ Started POST "/admin/countries" for 127.0.0.1 at 2015-09-01 21:42:32 -0600
4856
+ Processing by Admin::CountriesController#create as HTML
4857
+ Parameters: {"utf8"=>"✓", "authenticity_token"=>"U2T4xucQo+kEYXVRgI8H9zOfvQJ1rMMDwk/CHMhjqM7/eVuOPwHbVf6fQhq4EkfZSnfxmpQh3ksz7S5LLY5MBg==", "country"=>{"code"=>"", "name"=>"qweqw", "active"=>""}, "commit"=>"SAVE"}
4858
+  (0.1ms) begin transaction
4859
+ SQL (0.3ms) INSERT INTO "countries" ("name", "code", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qweqw"], ["code", ""], ["created_at", "2015-09-02 03:42:32.518267"], ["updated_at", "2015-09-02 03:42:32.518267"]]
4860
+  (22.3ms) commit transaction
4861
+ Redirected to http://localhost:3000/admin/countries
4862
+ Completed 302 Found in 29ms (ActiveRecord: 22.7ms)
4863
+
4864
+
4865
+ Started GET "/admin/countries" for 127.0.0.1 at 2015-09-01 21:42:32 -0600
4866
+ Processing by Admin::CountriesController#index as HTML
4867
+ Country Load (0.3ms) SELECT DISTINCT "countries".* FROM "countries" LIMIT 25 OFFSET 0
4868
+  (0.3ms) SELECT DISTINCT COUNT(DISTINCT "countries"."id") FROM "countries"
4869
+ Rendered admin/countries/index.html.haml within layouts/application (14.5ms)
4870
+ Completed 200 OK in 34ms (Views: 33.1ms | ActiveRecord: 0.6ms)