rails_refactor 1.3 → 1.4

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 (111) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG +1 -0
  3. data/Gemfile +3 -3
  4. data/Gemfile.lock +105 -69
  5. data/Manifest +61 -20
  6. data/bin/rails_refactor.rb +7 -7
  7. data/dummy/Gemfile +42 -25
  8. data/dummy/Gemfile.lock +173 -77
  9. data/dummy/README.rdoc +28 -0
  10. data/dummy/Rakefile +1 -2
  11. data/dummy/app/assets/javascripts/application.js +16 -0
  12. data/dummy/app/assets/stylesheets/application.css +15 -0
  13. data/dummy/app/controllers/application_controller.rb +3 -1
  14. data/dummy/app/controllers/dummies_controller.rb +0 -1
  15. data/dummy/app/views/dummies/index.html.erb +1 -2
  16. data/dummy/app/views/layouts/application.html.erb +3 -3
  17. data/dummy/bin/bundle +3 -0
  18. data/dummy/bin/rails +9 -0
  19. data/dummy/bin/rake +9 -0
  20. data/dummy/bin/setup +29 -0
  21. data/dummy/bin/spring +17 -0
  22. data/dummy/config.ru +2 -2
  23. data/dummy/config/application.rb +4 -20
  24. data/dummy/config/boot.rb +2 -12
  25. data/dummy/config/database.yml +12 -9
  26. data/dummy/config/environment.rb +3 -3
  27. data/dummy/config/environments/development.rb +28 -13
  28. data/dummy/config/environments/production.rb +58 -28
  29. data/dummy/config/environments/test.rb +22 -15
  30. data/dummy/config/initializers/assets.rb +11 -0
  31. data/dummy/config/initializers/cookies_serializer.rb +3 -0
  32. data/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  33. data/dummy/config/initializers/inflections.rb +9 -3
  34. data/dummy/config/initializers/mime_types.rb +0 -1
  35. data/dummy/config/initializers/session_store.rb +1 -6
  36. data/dummy/config/initializers/wrap_parameters.rb +14 -0
  37. data/dummy/config/locales/en.yml +20 -2
  38. data/dummy/config/routes.rb +24 -26
  39. data/dummy/config/secrets.yml +22 -0
  40. data/dummy/db/development.sqlite3 +0 -0
  41. data/dummy/db/migrate/{20101230081247_create_dummy_models.rb → 20170214234158_create_dummy_models.rb} +2 -6
  42. data/dummy/db/schema.rb +21 -0
  43. data/dummy/db/seeds.rb +2 -2
  44. data/dummy/db/test.sqlite3 +0 -0
  45. data/dummy/public/404.html +54 -13
  46. data/dummy/public/422.html +54 -13
  47. data/dummy/public/500.html +53 -13
  48. data/dummy/public/robots.txt +2 -2
  49. data/dummy/spec/controllers/dummies_controller_spec.rb +2 -2
  50. data/dummy/spec/helpers/dummies_helper_spec.rb +3 -3
  51. data/dummy/spec/models/dummy_model_spec.rb +2 -2
  52. data/dummy/test/{functional → controllers}/dummies_controller_test.rb +3 -5
  53. data/dummy/test/test_helper.rb +2 -5
  54. data/dummy/tmp/cache/assets/sprockets/v3.0/0J/0J8Y06zzUR0l-98gVnUiZSMLWIcgvag6JZrSQ-GmMkE.cache +1 -0
  55. data/dummy/tmp/cache/assets/sprockets/v3.0/5L/5Lly_CA8DZvPhQV2jDQx-Y6P_y3Ygra9t5jfSlGhHDA.cache +2 -0
  56. data/dummy/tmp/cache/assets/sprockets/v3.0/5_/5_pSHecLeN6enAq048bTQIyPEeerwPmymDDBzkkUPh8.cache +3 -0
  57. data/dummy/tmp/cache/assets/sprockets/v3.0/6g/6gIGeJ7YOb0mGXuJl0wUP4DKR_t_JayqkocSgkH1juA.cache +3 -0
  58. data/dummy/tmp/cache/assets/sprockets/v3.0/7R/7Ro3YPQDojP1-t-d3Z7XH5fud5RudfD-VykLAH2ryrI.cache +1 -0
  59. data/dummy/tmp/cache/assets/sprockets/v3.0/AP/APY89OAPJx9A3D3xcCoktvEvQUs7NcWChYXnjjjPzz0.cache +2 -0
  60. data/dummy/tmp/cache/assets/sprockets/v3.0/B1/B1GAmsRS-7nrUGTtmGdBxR-f9gl5kBZFy8p3kxTwSTs.cache +0 -0
  61. data/dummy/tmp/cache/assets/sprockets/v3.0/DS/DSOLSc6A5RVSmvM415eEWAWG_AgOvZcLZOXQjsXyWQA.cache +2 -0
  62. data/dummy/tmp/cache/assets/sprockets/v3.0/EB/EBtbhweQl74JQNkwFL3ahZH_9x44ceqa9hOT8lQ_SfM.cache +2 -0
  63. data/dummy/tmp/cache/assets/sprockets/v3.0/EQ/EQMU7OcCaRj7JaYia8OeWraimRFV08I3NajpxItPr_w.cache +0 -0
  64. data/dummy/tmp/cache/assets/sprockets/v3.0/Ei/Eiaf8C3zv64tXNf5ivlq4Xt_e2Y7Qogp6h6u_m4wrf4.cache +3 -0
  65. data/dummy/tmp/cache/assets/sprockets/v3.0/F0/F0RI4bpYPGBeSWP4Z-xOqkBXUDDtYfPU5kjPmlh_vTA.cache +1 -0
  66. data/dummy/tmp/cache/assets/sprockets/v3.0/Fn/FnLIvSU0P0Rr-3KeF2pL7CxFqJ4KOhpvlvlng0Q7scA.cache +1 -0
  67. data/dummy/tmp/cache/assets/sprockets/v3.0/If/If2pWtLkR3jpGhpRfDHDv6Ualti_bgfhSuuBXfpEETU.cache +1 -0
  68. data/dummy/tmp/cache/assets/sprockets/v3.0/J3/J3DjyBJAVYBXic6ylywPlr9zf2GJoNPO4vlBarB0tYE.cache +1 -0
  69. data/dummy/tmp/cache/assets/sprockets/v3.0/JV/JVm8t7ehDHucqDbG2dnfRUSvxgaWqFAtRuaH5MRIFfQ.cache +1 -0
  70. data/dummy/tmp/cache/assets/sprockets/v3.0/NO/NO-TZrEcLyQuB-5piSqbSbplmk8woO8-MItXY1xhQ1o.cache +1 -0
  71. data/dummy/tmp/cache/assets/sprockets/v3.0/OI/OI6uxGcnsKavdWTtwDAasU3wPx8QXhzBgV0X2n1KjMQ.cache +2 -0
  72. data/dummy/tmp/cache/assets/sprockets/v3.0/Ob/ObPHFplxs2zahTFNBoOE3MyzhbEa02fTq6kHwrF_99k.cache +0 -0
  73. data/dummy/tmp/cache/assets/sprockets/v3.0/P-/P-XWFt9GTflkbs5BRhEjQR24IST4x2rHkKKFWEpkzlQ.cache +0 -0
  74. data/dummy/tmp/cache/assets/sprockets/v3.0/P-/P-oAGmeqPPkPtepd3yRW1xcBAyZ9PQCknUSTP_1fTrQ.cache +1 -0
  75. data/dummy/tmp/cache/assets/sprockets/v3.0/UM/UM_H6cyEQXE2u2lO-7guFFdIyuBjYw5RW21t4QuycQA.cache +1 -0
  76. data/dummy/tmp/cache/assets/sprockets/v3.0/Uw/UwU65qhibWAQvgqfEfTBcPEM0bLevORl9_crJGs9V8Q.cache +2 -0
  77. data/dummy/tmp/cache/assets/sprockets/v3.0/Wc/Wcbt_SUiw7SB3-AFGrGfobJl1pJ2v7hh6d-EHtIDyjw.cache +1 -0
  78. data/dummy/tmp/cache/assets/sprockets/v3.0/YI/YI7HlLnxIPnVWHFYzsD15uJqjPns27jfpxmBzrGXxgg.cache +1 -0
  79. data/dummy/tmp/cache/assets/sprockets/v3.0/dc/dck2gjYqgYSFSeqIOUXeSgSL3egPgMN2G3DLwJasyB8.cache +1 -0
  80. data/dummy/tmp/cache/assets/sprockets/v3.0/ee/ee1zuHshHLX_IASgBziKkg4IG8hJbCkDVmtfRAHAsNU.cache +1 -0
  81. data/dummy/tmp/cache/assets/sprockets/v3.0/f3/f3o9-VEcurfcZdAMlf8m6cdb1opLEn0eccuxSGKbKiE.cache +1 -0
  82. data/dummy/tmp/cache/assets/sprockets/v3.0/fA/fAE09zGXw4wj48ZxewRL1pMf7NkgZC7cKMZuVWl5sMI.cache +0 -0
  83. data/dummy/tmp/cache/assets/sprockets/v3.0/fF/fF_7i0aX5AmlsztdZHN_NUINWYFOJy1w-ZP8LtWLpTU.cache +1 -0
  84. data/dummy/tmp/cache/assets/sprockets/v3.0/fi/fiz6eKj5NRr_-GdbbbAjV6KkXc_Z1IRsnmf5Mh1qXSs.cache +0 -0
  85. data/dummy/tmp/cache/assets/sprockets/v3.0/hW/hWIGlqeCSpLpGwWWM2JfMoV_54nmyCWCrsmaoy69rK8.cache +0 -0
  86. data/dummy/tmp/cache/assets/sprockets/v3.0/jf/jfwq8sz6kKFZaz8rPixf5j_e1hZo7_q2QVsfLDzDLNc.cache +0 -0
  87. data/dummy/tmp/cache/assets/sprockets/v3.0/jj/jjUB1ir1Vdt5WLpR9DWUSfHdRTL_Fsfq3nTAf7fJkYg.cache +0 -0
  88. data/dummy/tmp/cache/assets/sprockets/v3.0/kS/kSkCWaAJCcTgZ_AhrRCjZhNtkE12cubiq70uNtditqk.cache +2 -0
  89. data/dummy/tmp/cache/assets/sprockets/v3.0/lp/lp9jvq-ApxVb7qJI6YEaanVXs5zA1rivibtabrOo-D4.cache +0 -0
  90. data/dummy/tmp/cache/assets/sprockets/v3.0/me/meI7L0bxT8qSUwyhKKtPL2OQLGljXQzVkmOSsHwujxI.cache +1 -0
  91. data/dummy/tmp/cache/assets/sprockets/v3.0/wJ/wJC8Mf7f7BE92W-e0i-JuoqCScHOc4XstbsSr49xX5I.cache +1 -0
  92. data/dummy/tmp/cache/assets/sprockets/v3.0/xE/xEWmch8fg9JmWdSpRS-FmtBQvGStIC5iK-luzXf_yiw.cache +1 -0
  93. data/dummy/tmp/cache/assets/sprockets/v3.0/xS/xSlHR2-kW_8ofNDd-wHO3YbK8NBn-Rq--Wkk6SwFQcc.cache +1 -0
  94. data/rails_refactor.gemspec +7 -15
  95. metadata +69 -32
  96. data/dummy/README +0 -256
  97. data/dummy/autotest/discover.rb +0 -2
  98. data/dummy/config/initializers/secret_token.rb +0 -7
  99. data/dummy/doc/README_FOR_APP +0 -2
  100. data/dummy/public/images/rails.png +0 -0
  101. data/dummy/public/index.html +0 -239
  102. data/dummy/public/javascripts/application.js +0 -2
  103. data/dummy/public/javascripts/controls.js +0 -965
  104. data/dummy/public/javascripts/dragdrop.js +0 -974
  105. data/dummy/public/javascripts/effects.js +0 -1123
  106. data/dummy/public/javascripts/prototype.js +0 -6001
  107. data/dummy/public/javascripts/rails.js +0 -175
  108. data/dummy/script/rails +0 -6
  109. data/dummy/spec/spec_helper.rb +0 -27
  110. data/dummy/test/performance/browsing_test.rb +0 -9
  111. data/dummy/test/unit/helpers/dummies_helper_test.rb +0 -4
@@ -1,35 +1,42 @@
1
- Dummy::Application.configure do
2
- # Settings specified here will take precedence over those in config/environment.rb
1
+ Rails.application.configure do
2
+ # Settings specified here will take precedence over those in config/application.rb.
3
3
 
4
4
  # The test environment is used exclusively to run your application's
5
- # test suite. You never need to work with it otherwise. Remember that
5
+ # test suite. You never need to work with it otherwise. Remember that
6
6
  # your test database is "scratch space" for the test suite and is wiped
7
- # and recreated between test runs. Don't rely on the data there!
7
+ # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
- # Log error messages when you accidentally call methods on nil.
11
- config.whiny_nils = true
10
+ # Do not eager load code on boot. This avoids loading your whole application
11
+ # just for the purpose of running a single test. If you are using a tool that
12
+ # preloads Rails for running tests, you may have to set it to true.
13
+ config.eager_load = false
12
14
 
13
- # Show full error reports and disable caching
15
+ # Configure static file server for tests with Cache-Control for performance.
16
+ config.serve_static_files = true
17
+ config.static_cache_control = 'public, max-age=3600'
18
+
19
+ # Show full error reports and disable caching.
14
20
  config.consider_all_requests_local = true
15
21
  config.action_controller.perform_caching = false
16
22
 
17
- # Raise exceptions instead of rendering exception templates
23
+ # Raise exceptions instead of rendering exception templates.
18
24
  config.action_dispatch.show_exceptions = false
19
25
 
20
- # Disable request forgery protection in test environment
21
- config.action_controller.allow_forgery_protection = false
26
+ # Disable request forgery protection in test environment.
27
+ config.action_controller.allow_forgery_protection = false
22
28
 
23
29
  # Tell Action Mailer not to deliver emails to the real world.
24
30
  # The :test delivery method accumulates sent emails in the
25
31
  # ActionMailer::Base.deliveries array.
26
32
  config.action_mailer.delivery_method = :test
27
33
 
28
- # Use SQL instead of Active Record's schema dumper when creating the test database.
29
- # This is necessary if your schema can't be completely dumped by the schema dumper,
30
- # like if you have constraints or database-specific column types
31
- # config.active_record.schema_format = :sql
34
+ # Randomize the order test cases are executed.
35
+ config.active_support.test_order = :random
32
36
 
33
- # Print deprecation notices to the stderr
37
+ # Print deprecation notices to the stderr.
34
38
  config.active_support.deprecation = :stderr
39
+
40
+ # Raises error for missing translations
41
+ # config.action_view.raise_on_missing_translations = true
35
42
  end
@@ -0,0 +1,11 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Version of your assets, change this if you want to expire all your assets.
4
+ Rails.application.config.assets.version = '1.0'
5
+
6
+ # Add additional assets to the asset load path
7
+ # Rails.application.config.assets.paths << Emoji.images_path
8
+
9
+ # Precompile additional assets.
10
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
11
+ # Rails.application.config.assets.precompile += %w( search.js )
@@ -0,0 +1,3 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,4 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Configure sensitive parameters which will be filtered from the log file.
4
+ Rails.application.config.filter_parameters += [:password]
@@ -1,10 +1,16 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
3
+ # Add new inflection rules using the following format. Inflections
4
+ # are locale specific, and you may define rules for as many different
5
+ # locales as you wish. All of these examples are active by default:
6
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
6
7
  # inflect.plural /^(ox)$/i, '\1en'
7
8
  # inflect.singular /^(ox)en/i, '\1'
8
9
  # inflect.irregular 'person', 'people'
9
10
  # inflect.uncountable %w( fish sheep )
10
11
  # end
12
+
13
+ # These inflection rules are supported but not enabled by default:
14
+ # ActiveSupport::Inflector.inflections(:en) do |inflect|
15
+ # inflect.acronym 'RESTful'
16
+ # end
@@ -2,4 +2,3 @@
2
2
 
3
3
  # Add new mime types for use in respond_to blocks:
4
4
  # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,8 +1,3 @@
1
1
  # Be sure to restart your server when you modify this file.
2
2
 
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rake db:sessions:create")
8
- # Dummy::Application.config.session_store :active_record_store
3
+ Rails.application.config.session_store :cookie_store, key: '_dummy_session'
@@ -0,0 +1,14 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # This file contains settings for ActionController::ParamsWrapper which
4
+ # is enabled by default.
5
+
6
+ # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
+ ActiveSupport.on_load(:action_controller) do
8
+ wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
9
+ end
10
+
11
+ # To enable root element in JSON for ActiveRecord objects.
12
+ # ActiveSupport.on_load(:active_record) do
13
+ # self.include_root_in_json = true
14
+ # end
@@ -1,5 +1,23 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
1
+ # Files in the config/locales directory are used for internationalization
2
+ # and are automatically loaded by Rails. If you want to use locales other
3
+ # than English, add the necessary files in this directory.
4
+ #
5
+ # To use the locales, use `I18n.t`:
6
+ #
7
+ # I18n.t 'hello'
8
+ #
9
+ # In views, this is aliased to just `t`:
10
+ #
11
+ # <%= t('hello') %>
12
+ #
13
+ # To use a different locale, set it with `I18n.locale`:
14
+ #
15
+ # I18n.locale = :es
16
+ #
17
+ # This would use the information in config/locales/es.yml.
18
+ #
19
+ # To learn more, please read the Rails Internationalization guide
20
+ # available at http://guides.rubyonrails.org/i18n.html.
3
21
 
4
22
  en:
5
23
  hello: "Hello world"
@@ -1,21 +1,22 @@
1
- Dummy::Application.routes.draw do
2
- get "dummies/index"
1
+ Rails.application.routes.draw do
2
+ get '/dummies' => 'dummies#index'
3
3
 
4
- # The priority is based upon order of creation:
5
- # first created -> highest priority.
4
+ # The priority is based upon order of creation: first created -> highest priority.
5
+ # See how all your routes lay out with "rake routes".
6
6
 
7
- # Sample of regular route:
8
- # match 'products/:id' => 'catalog#view'
9
- # Keep in mind you can assign values other than :controller and :action
7
+ # You can have the root of your site routed with "root"
8
+ # root 'welcome#index'
9
+
10
+ # Example of regular route:
11
+ # get 'products/:id' => 'catalog#view'
10
12
 
11
- # Sample of named route:
12
- # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
13
- # This route can be invoked with purchase_url(:id => product.id)
13
+ # Example of named route that can be invoked with purchase_url(id: product.id)
14
+ # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
14
15
 
15
- # Sample resource route (maps HTTP verbs to controller actions automatically):
16
+ # Example resource route (maps HTTP verbs to controller actions automatically):
16
17
  # resources :products
17
18
 
18
- # Sample resource route with options:
19
+ # Example resource route with options:
19
20
  # resources :products do
20
21
  # member do
21
22
  # get 'short'
@@ -27,34 +28,31 @@ Dummy::Application.routes.draw do
27
28
  # end
28
29
  # end
29
30
 
30
- # Sample resource route with sub-resources:
31
+ # Example resource route with sub-resources:
31
32
  # resources :products do
32
33
  # resources :comments, :sales
33
34
  # resource :seller
34
35
  # end
35
36
 
36
- # Sample resource route with more complex sub-resources
37
+ # Example resource route with more complex sub-resources:
37
38
  # resources :products do
38
39
  # resources :comments
39
40
  # resources :sales do
40
- # get 'recent', :on => :collection
41
+ # get 'recent', on: :collection
41
42
  # end
42
43
  # end
43
44
 
44
- # Sample resource route within a namespace:
45
+ # Example resource route with concerns:
46
+ # concern :toggleable do
47
+ # post 'toggle'
48
+ # end
49
+ # resources :posts, concerns: :toggleable
50
+ # resources :photos, concerns: :toggleable
51
+
52
+ # Example resource route within a namespace:
45
53
  # namespace :admin do
46
54
  # # Directs /admin/products/* to Admin::ProductsController
47
55
  # # (app/controllers/admin/products_controller.rb)
48
56
  # resources :products
49
57
  # end
50
-
51
- # You can have the root of your site routed with "root"
52
- # just remember to delete public/index.html.
53
- # root :to => "welcome#index"
54
-
55
- # See how all your routes lay out with "rake routes"
56
-
57
- # This is a legacy wild controller route that's not recommended for RESTful applications.
58
- # Note: This route will make all actions in every controller accessible via GET requests.
59
- # match ':controller(/:action(/:id(.:format)))'
60
58
  end
@@ -0,0 +1,22 @@
1
+ # Be sure to restart your server when you modify this file.
2
+
3
+ # Your secret key is used for verifying the integrity of signed cookies.
4
+ # If you change this key, all old signed cookies will become invalid!
5
+
6
+ # Make sure the secret is at least 30 characters and all random,
7
+ # no regular words or you'll be exposed to dictionary attacks.
8
+ # You can use `rake secret` to generate a secure secret key.
9
+
10
+ # Make sure the secrets in this file are kept private
11
+ # if you're sharing your code publicly.
12
+
13
+ development:
14
+ secret_key_base: 236524798e1c8a4d41b6f236541346672fd0c177f70a655ac76ba58c2a2757091fe0ab161f5a03d8357c0f743df8ec7f748dbbc83cb2ce0dcf5e7949183c62c3
15
+
16
+ test:
17
+ secret_key_base: c024a21c09d0f1aad514241831019ecc2de2c456f951db0f6f0372d560fd783aa7c688c3d1822048e046a6a93475656990fdf9c5e4a29991b3a1048d6c177653
18
+
19
+ # Do not keep production secrets in the repository,
20
+ # instead read values from the environment.
21
+ production:
22
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Binary file
@@ -1,12 +1,8 @@
1
1
  class CreateDummyModels < ActiveRecord::Migration
2
- def self.up
2
+ def change
3
3
  create_table :dummy_models do |t|
4
4
 
5
- t.timestamps
5
+ t.timestamps null: false
6
6
  end
7
7
  end
8
-
9
- def self.down
10
- drop_table :dummy_models
11
- end
12
8
  end
@@ -0,0 +1,21 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended that you check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(version: 20170214234158) do
15
+
16
+ create_table "dummy_models", force: :cascade do |t|
17
+ t.datetime "created_at", null: false
18
+ t.datetime "updated_at", null: false
19
+ end
20
+
21
+ end
data/dummy/db/seeds.rb CHANGED
@@ -3,5 +3,5 @@
3
3
  #
4
4
  # Examples:
5
5
  #
6
- # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }])
7
- # Mayor.create(:name => 'Daley', :city => cities.first)
6
+ # cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
7
+ # Mayor.create(name: 'Emanuel', city: cities.first)
File without changes
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/404.html -->
21
59
  <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</title>
5
- <style type="text/css">
6
- body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
- div.dialog {
8
- width: 25em;
9
- padding: 0 4em;
10
- margin: 4em auto 0 auto;
11
- border: 1px solid #ccc;
12
- border-right-color: #999;
13
- border-bottom-color: #999;
14
- }
15
- h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/422.html -->
21
59
  <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>