europeana-feedback-button 0.0.5 → 0.0.6

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 (85) hide show
  1. checksums.yaml +5 -5
  2. data/.codeclimate.yml +5 -0
  3. data/.rubocop.yml +2 -8
  4. data/.travis.yml +1 -2
  5. data/Gemfile +11 -6
  6. data/README.md +17 -7
  7. data/Rakefile +1 -0
  8. data/app/controllers/europeana/feedback_button/application_controller.rb +28 -0
  9. data/app/controllers/europeana/feedback_button/feedback_controller.rb +20 -12
  10. data/app/mailers/europeana/feedback_button/feedback_mailer.rb +9 -6
  11. data/app/models/europeana/feedback_button/feedback.rb +21 -0
  12. data/app/validators/europeana/feedback_button/word_count_validator.rb +26 -0
  13. data/app/views/concerns/europeana/feedback_button/feedbackable_view.rb +5 -5
  14. data/app/views/europeana/feedback_button/feedback_mailer/post.text.erb +2 -0
  15. data/bin/rails +19 -5
  16. data/config/routes.rb +1 -0
  17. data/europeana-feedback-button.gemspec +7 -10
  18. data/lib/europeana/feedback_button.rb +32 -1
  19. data/lib/europeana/feedback_button/engine.rb +2 -1
  20. data/lib/europeana/feedback_button/version.rb +2 -1
  21. data/lib/generators/europeana/feedback_button/install_generator.rb +15 -0
  22. data/lib/generators/europeana/feedback_button/templates/europeana_feedback_button.rb +8 -0
  23. data/spec/controllers/feedback_controller_spec.rb +82 -19
  24. data/spec/dummy/Rakefile +2 -1
  25. data/spec/dummy/app/assets/config/manifest.js +3 -0
  26. data/spec/dummy/app/assets/javascripts/application.js +2 -1
  27. data/spec/dummy/app/assets/stylesheets/application.css +3 -3
  28. data/spec/dummy/app/controllers/application_controller.rb +1 -3
  29. data/spec/dummy/app/controllers/welcome_controller.rb +3 -5
  30. data/spec/dummy/app/helpers/application_helper.rb +1 -0
  31. data/spec/dummy/app/jobs/application_job.rb +4 -0
  32. data/spec/dummy/app/mailers/application_mailer.rb +2 -1
  33. data/spec/dummy/app/views/layouts/application.html.erb +9 -9
  34. data/spec/dummy/app/views/layouts/mailer.html.erb +10 -6
  35. data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
  36. data/spec/dummy/bin/bundle +2 -1
  37. data/spec/dummy/bin/rails +2 -1
  38. data/spec/dummy/bin/rake +1 -0
  39. data/spec/dummy/bin/setup +16 -16
  40. data/spec/dummy/bin/update +30 -0
  41. data/spec/dummy/bin/yarn +11 -0
  42. data/spec/dummy/config.ru +3 -1
  43. data/spec/dummy/config/application.rb +12 -18
  44. data/spec/dummy/config/boot.rb +3 -2
  45. data/spec/dummy/config/environment.rb +2 -1
  46. data/spec/dummy/config/environments/development.rb +24 -20
  47. data/spec/dummy/config/environments/production.rb +22 -26
  48. data/spec/dummy/config/environments/test.rb +10 -6
  49. data/spec/dummy/config/initializers/application_controller_renderer.rb +9 -0
  50. data/spec/dummy/config/initializers/content_security_policy.rb +26 -0
  51. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  52. data/spec/dummy/config/initializers/europeana_feedback_button.rb +5 -0
  53. data/spec/dummy/config/initializers/filter_parameter_logging.rb +1 -0
  54. data/spec/dummy/config/initializers/wrap_parameters.rb +2 -6
  55. data/spec/dummy/config/locales/en.yml +10 -0
  56. data/spec/dummy/config/puma.rb +36 -0
  57. data/spec/dummy/config/routes.rb +2 -57
  58. data/spec/dummy/config/spring.rb +8 -0
  59. data/spec/dummy/package.json +5 -0
  60. data/spec/dummy/public/404.html +6 -6
  61. data/spec/dummy/public/422.html +6 -6
  62. data/spec/dummy/public/500.html +6 -6
  63. data/{app/assets/images/europeana_feedback_button/.keep → spec/dummy/public/apple-touch-icon-precomposed.png} +0 -0
  64. data/{app/models/.keep → spec/dummy/public/apple-touch-icon.png} +0 -0
  65. data/spec/lib/europeana/feedback_button_spec.rb +21 -0
  66. data/spec/mailers/feedback_mailer_spec.rb +54 -0
  67. data/spec/models/feedback_spec.rb +25 -0
  68. data/spec/spec_helper.rb +11 -1
  69. metadata +52 -53
  70. data/QUICKSTART.md +0 -30
  71. data/app/assets/javascripts/europeana_feedback_button/application.js +0 -13
  72. data/app/assets/stylesheets/europeana_feedback_button/application.css +0 -15
  73. data/app/helpers/europeana/feedback_button/application_helper.rb +0 -7
  74. data/app/helpers/europeana/feedback_button/feedback_helper.rb +0 -12
  75. data/app/views/layouts/europeana/feedback_button/application.html.erb +0 -14
  76. data/config/initializers/action_mailer.rb +0 -2
  77. data/lib/tasks/europeana_feedback_button_tasks.rake +0 -5
  78. data/spec/dummy/README.rdoc +0 -28
  79. data/spec/dummy/app/mailers/.keep +0 -0
  80. data/spec/dummy/app/models/.keep +0 -0
  81. data/spec/dummy/config/database.yml +0 -25
  82. data/spec/dummy/config/initializers/assets.rb +0 -12
  83. data/spec/dummy/config/initializers/session_store.rb +0 -4
  84. data/spec/dummy/config/secrets.yml +0 -22
  85. data/spec/helpers/feedback_helper_spec.rb +0 -0
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Set up gems listed in the Gemfile.
3
- ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__)
4
+ ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
4
5
 
5
6
  require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
6
- $LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__)
7
+ $LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Load the Rails application.
3
- require File.expand_path('../application', __FILE__)
4
+ require_relative 'application'
4
5
 
5
6
  # Initialize the Rails application.
6
7
  Rails.application.initialize!
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Rails.application.configure do
3
4
  # Settings specified here will take precedence over those in config/application.rb.
4
5
 
@@ -10,33 +11,36 @@ Rails.application.configure do
10
11
  # Do not eager load code on boot.
11
12
  config.eager_load = false
12
13
 
13
- # Show full error reports and disable caching.
14
- config.consider_all_requests_local = true
15
- config.action_controller.perform_caching = false
14
+ # Show full error reports.
15
+ config.consider_all_requests_local = true
16
16
 
17
- # Don't care if the mailer can't send.
18
- config.action_mailer.raise_delivery_errors = false
17
+ # Enable/disable caching. By default caching is disabled.
18
+ # Run rails dev:cache to toggle caching.
19
+ if Rails.root.join('tmp', 'caching-dev.txt').exist?
20
+ config.action_controller.perform_caching = true
19
21
 
20
- # Print deprecation notices to the Rails logger.
21
- config.active_support.deprecation = :log
22
+ config.cache_store = :memory_store
23
+ config.public_file_server.headers = {
24
+ 'Cache-Control' => "public, max-age=#{2.days.to_i}"
25
+ }
26
+ else
27
+ config.action_controller.perform_caching = false
22
28
 
23
- # Raise an error on page load if there are pending migrations.
24
- config.active_record.migration_error = :page_load
29
+ config.cache_store = :null_store
30
+ end
25
31
 
26
- # Debug mode disables concatenation and preprocessing of assets.
27
- # This option may cause significant delays in view rendering with a large
28
- # number of complex assets.
29
- config.assets.debug = true
32
+ # Don't care if the mailer can't send.
33
+ config.action_mailer.raise_delivery_errors = false
30
34
 
31
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
32
- # yet still be able to expire them through the digest params.
33
- config.assets.digest = true
35
+ config.action_mailer.perform_caching = false
34
36
 
35
- # Adds additional error checking when serving assets at runtime.
36
- # Checks for improperly declared sprockets dependencies.
37
- # Raises helpful error messages.
38
- config.assets.raise_runtime_errors = true
37
+ # Print deprecation notices to the Rails logger.
38
+ config.active_support.deprecation = :log
39
39
 
40
40
  # Raises error for missing translations
41
41
  # config.action_view.raise_on_missing_translations = true
42
+
43
+ # Use an evented file watcher to asynchronously detect changes in source code,
44
+ # routes, locales, etc. This feature depends on the listen gem.
45
+ # config.file_watcher = ActiveSupport::EventedFileUpdateChecker
42
46
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Rails.application.configure do
3
4
  # Settings specified here will take precedence over those in config/application.rb.
4
5
 
@@ -15,28 +16,16 @@ Rails.application.configure do
15
16
  config.consider_all_requests_local = false
16
17
  config.action_controller.perform_caching = true
17
18
 
18
- # Enable Rack::Cache to put a simple HTTP cache in front of your application
19
- # Add `rack-cache` to your Gemfile before enabling this.
20
- # For large-scale production use, consider using a caching reverse proxy like
21
- # NGINX, varnish or squid.
22
- # config.action_dispatch.rack_cache = true
19
+ # Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"]
20
+ # or in config/master.key. This key is used to decrypt credentials (and other encrypted files).
21
+ # config.require_master_key = true
23
22
 
24
23
  # Disable serving static files from the `/public` folder by default since
25
24
  # Apache or NGINX already handles this.
26
- config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
27
-
28
- # Compress JavaScripts and CSS.
29
- config.assets.js_compressor = :uglifier
30
- # config.assets.css_compressor = :sass
31
-
32
- # Do not fallback to assets pipeline if a precompiled asset is missed.
33
- config.assets.compile = false
25
+ config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
34
26
 
35
- # Asset digests allow you to set far-future HTTP expiration dates on all assets,
36
- # yet still be able to expire them through the digest params.
37
- config.assets.digest = true
38
-
39
- # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
27
+ # Enable serving of images, stylesheets, and JavaScripts from an asset server.
28
+ # config.action_controller.asset_host = 'http://assets.example.com'
40
29
 
41
30
  # Specifies the header that your server uses for sending files.
42
31
  # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
@@ -50,16 +39,16 @@ Rails.application.configure do
50
39
  config.log_level = :debug
51
40
 
52
41
  # Prepend all log lines with the following tags.
53
- # config.log_tags = [ :subdomain, :uuid ]
54
-
55
- # Use a different logger for distributed setups.
56
- # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
42
+ config.log_tags = [:request_id]
57
43
 
58
44
  # Use a different cache store in production.
59
45
  # config.cache_store = :mem_cache_store
60
46
 
61
- # Enable serving of images, stylesheets, and JavaScripts from an asset server.
62
- # config.action_controller.asset_host = 'http://assets.example.com'
47
+ # Use a real queuing backend for Active Job (and separate queues per environment)
48
+ # config.active_job.queue_adapter = :resque
49
+ # config.active_job.queue_name_prefix = "dummy_#{Rails.env}"
50
+
51
+ config.action_mailer.perform_caching = false
63
52
 
64
53
  # Ignore bad email addresses and do not raise email delivery errors.
65
54
  # Set this to true and configure the email server for immediate delivery to raise delivery errors.
@@ -75,6 +64,13 @@ Rails.application.configure do
75
64
  # Use default logging formatter so that PID and timestamp are not suppressed.
76
65
  config.log_formatter = ::Logger::Formatter.new
77
66
 
78
- # Do not dump schema after migrations.
79
- config.active_record.dump_schema_after_migration = false
67
+ # Use a different logger for distributed setups.
68
+ # require 'syslog/logger'
69
+ # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
70
+
71
+ if ENV['RAILS_LOG_TO_STDOUT'].present?
72
+ logger = ActiveSupport::Logger.new(STDOUT)
73
+ logger.formatter = config.log_formatter
74
+ config.logger = ActiveSupport::TaggedLogging.new(logger)
75
+ end
80
76
  end
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  Rails.application.configure do
3
4
  # Settings specified here will take precedence over those in config/application.rb.
4
5
 
@@ -13,9 +14,11 @@ Rails.application.configure do
13
14
  # preloads Rails for running tests, you may have to set it to true.
14
15
  config.eager_load = false
15
16
 
16
- # Configure static file server for tests with Cache-Control for performance.
17
- config.serve_static_files = true
18
- config.static_cache_control = 'public, max-age=3600'
17
+ # Configure public file server for tests with Cache-Control for performance.
18
+ config.public_file_server.enabled = true
19
+ config.public_file_server.headers = {
20
+ 'Cache-Control' => "public, max-age=#{1.hour.to_i}"
21
+ }
19
22
 
20
23
  # Show full error reports and disable caching.
21
24
  config.consider_all_requests_local = true
@@ -27,17 +30,18 @@ Rails.application.configure do
27
30
  # Disable request forgery protection in test environment.
28
31
  config.action_controller.allow_forgery_protection = false
29
32
 
33
+ config.action_mailer.perform_caching = false
34
+
30
35
  # Tell Action Mailer not to deliver emails to the real world.
31
36
  # The :test delivery method accumulates sent emails in the
32
37
  # ActionMailer::Base.deliveries array.
33
38
  config.action_mailer.delivery_method = :test
34
39
 
35
- # Randomize the order test cases are executed.
36
- config.active_support.test_order = :random
37
-
38
40
  # Print deprecation notices to the stderr.
39
41
  config.active_support.deprecation = :stderr
40
42
 
43
+ config.active_job.queue_adapter = :inline
44
+
41
45
  # Raises error for missing translations
42
46
  # config.action_view.raise_on_missing_translations = true
43
47
  end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # ActiveSupport::Reloader.to_prepare do
5
+ # ApplicationController.renderer.defaults.merge!(
6
+ # http_host: 'example.org',
7
+ # https: false
8
+ # )
9
+ # end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+ # Be sure to restart your server when you modify this file.
3
+
4
+ # Define an application-wide content security policy
5
+ # For further information see the following documentation
6
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
7
+
8
+ # Rails.application.config.content_security_policy do |policy|
9
+ # policy.default_src :self, :https
10
+ # policy.font_src :self, :https, :data
11
+ # policy.img_src :self, :https, :data
12
+ # policy.object_src :none
13
+ # policy.script_src :self, :https
14
+ # policy.style_src :self, :https
15
+
16
+ # # Specify URI for violation reports
17
+ # # policy.report_uri "/csp-violation-report-endpoint"
18
+ # end
19
+
20
+ # If you are using UJS then enable automatic nonce generation
21
+ # Rails.application.config.content_security_policy_nonce_generator = -> request { SecureRandom.base64(16) }
22
+
23
+ # Report CSP violations to a specified URI
24
+ # For further information see the following documentation:
25
+ # https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy-Report-Only
26
+ # Rails.application.config.content_security_policy_report_only = true
@@ -1,4 +1,7 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Be sure to restart your server when you modify this file.
3
4
 
5
+ # Specify a serializer for the signed and encrypted cookie jars.
6
+ # Valid options are :json, :marshal, and :hybrid.
4
7
  Rails.application.config.action_dispatch.cookies_serializer = :json
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Set the recipient of emails containing feedback submissions
4
+ Europeana::FeedbackButton.mail_to = 'feedback@example.org'
5
+ # Europeana::FeedbackButton.mail_to = ENV['FEEDBACK_MAIL_TO']
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Be sure to restart your server when you modify this file.
3
4
 
4
5
  # Configure sensitive parameters which will be filtered from the log file.
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  # Be sure to restart your server when you modify this file.
3
4
 
4
5
  # This file contains settings for ActionController::ParamsWrapper which
@@ -6,10 +7,5 @@
6
7
 
7
8
  # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
8
9
  ActiveSupport.on_load(:action_controller) do
9
- wrap_parameters format: [:json] if respond_to?(:wrap_parameters)
10
+ wrap_parameters format: [:json]
10
11
  end
11
-
12
- # To enable root element in JSON for ActiveRecord objects.
13
- # ActiveSupport.on_load(:active_record) do
14
- # self.include_root_in_json = true
15
- # end
@@ -16,6 +16,16 @@
16
16
  #
17
17
  # This would use the information in config/locales/es.yml.
18
18
  #
19
+ # The following keys must be escaped otherwise they will not be retrieved by
20
+ # the default I18n backend:
21
+ #
22
+ # true, false, on, off, yes, no
23
+ #
24
+ # Instead, surround them with single quotes.
25
+ #
26
+ # en:
27
+ # 'true': 'foo'
28
+ #
19
29
  # To learn more, please read the Rails Internationalization guide
20
30
  # available at http://guides.rubyonrails.org/i18n.html.
21
31
 
@@ -0,0 +1,36 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Puma can serve each request in a thread from an internal thread pool.
4
+ # The `threads` method setting takes two numbers: a minimum and maximum.
5
+ # Any libraries that use thread pools should be configured to match
6
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
7
+ # and maximum; this matches the default thread size of Active Record.
8
+ #
9
+ threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
10
+ threads threads_count, threads_count
11
+
12
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
13
+ #
14
+ port ENV.fetch('PORT') { 3000 }
15
+
16
+ # Specifies the `environment` that Puma will run in.
17
+ #
18
+ environment ENV.fetch('RAILS_ENV') { 'development' }
19
+
20
+ # Specifies the number of `workers` to boot in clustered mode.
21
+ # Workers are forked webserver processes. If using threads and workers together
22
+ # the concurrency of the application would be max `threads` * `workers`.
23
+ # Workers do not work on JRuby or Windows (both of which do not support
24
+ # processes).
25
+ #
26
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
27
+
28
+ # Use the `preload_app!` method when specifying a `workers` number.
29
+ # This directive tells Puma to first boot the application and load code
30
+ # before forking the application. This takes advantage of Copy On Write
31
+ # process behavior so workers use less memory.
32
+ #
33
+ # preload_app!
34
+
35
+ # Allow puma to be restarted by `rails restart` command.
36
+ plugin :tmp_restart
@@ -1,61 +1,6 @@
1
1
  # frozen_string_literal: true
2
- Rails.application.routes.draw do
3
- # The priority is based upon order of creation: first created -> highest priority.
4
- # See how all your routes lay out with "rake routes".
5
-
6
- # You can have the root of your site routed with "root"
7
- # root 'welcome#index'
8
2
 
3
+ Rails.application.routes.draw do
9
4
  root 'welcome#index'
10
-
11
- mount Europeana::FeedbackButton::Engine, at: '/'
12
-
13
- # Example of regular route:
14
- # get 'products/:id' => 'catalog#view'
15
-
16
- # Example of named route that can be invoked with purchase_url(id: product.id)
17
- # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
18
-
19
- # Example resource route (maps HTTP verbs to controller actions automatically):
20
- # resources :products
21
-
22
- # Example resource route with options:
23
- # resources :products do
24
- # member do
25
- # get 'short'
26
- # post 'toggle'
27
- # end
28
- #
29
- # collection do
30
- # get 'sold'
31
- # end
32
- # end
33
-
34
- # Example resource route with sub-resources:
35
- # resources :products do
36
- # resources :comments, :sales
37
- # resource :seller
38
- # end
39
-
40
- # Example resource route with more complex sub-resources:
41
- # resources :products do
42
- # resources :comments
43
- # resources :sales do
44
- # get 'recent', on: :collection
45
- # end
46
- # end
47
-
48
- # Example resource route with concerns:
49
- # concern :toggleable do
50
- # post 'toggle'
51
- # end
52
- # resources :posts, concerns: :toggleable
53
- # resources :photos, concerns: :toggleable
54
-
55
- # Example resource route within a namespace:
56
- # namespace :admin do
57
- # # Directs /admin/products/* to Admin::ProductsController
58
- # # (app/controllers/admin/products_controller.rb)
59
- # resources :products
60
- # end
5
+ mount Europeana::FeedbackButton::Engine, at: '/europeana/feedback_button'
61
6
  end
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ %w[
4
+ .ruby-version
5
+ .rbenv-vars
6
+ tmp/restart.txt
7
+ tmp/caching-dev.txt
8
+ ].each { |path| Spring.watch(path) }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dummy",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -4,7 +4,7 @@
4
4
  <title>The page you were looking for doesn't exist (404)</title>
5
5
  <meta name="viewport" content="width=device-width,initial-scale=1">
6
6
  <style>
7
- body {
7
+ .rails-default-error-page {
8
8
  background-color: #EFEFEF;
9
9
  color: #2E2F30;
10
10
  text-align: center;
@@ -12,13 +12,13 @@
12
12
  margin: 0;
13
13
  }
14
14
 
15
- div.dialog {
15
+ .rails-default-error-page div.dialog {
16
16
  width: 95%;
17
17
  max-width: 33em;
18
18
  margin: 4em auto 0;
19
19
  }
20
20
 
21
- div.dialog > div {
21
+ .rails-default-error-page div.dialog > div {
22
22
  border: 1px solid #CCC;
23
23
  border-right-color: #999;
24
24
  border-left-color: #999;
@@ -31,13 +31,13 @@
31
31
  box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
32
  }
33
33
 
34
- h1 {
34
+ .rails-default-error-page h1 {
35
35
  font-size: 100%;
36
36
  color: #730E15;
37
37
  line-height: 1.5em;
38
38
  }
39
39
 
40
- div.dialog > p {
40
+ .rails-default-error-page div.dialog > p {
41
41
  margin: 0 0 1em;
42
42
  padding: 1em;
43
43
  background-color: #F7F7F7;
@@ -54,7 +54,7 @@
54
54
  </style>
55
55
  </head>
56
56
 
57
- <body>
57
+ <body class="rails-default-error-page">
58
58
  <!-- This file lives in public/404.html -->
59
59
  <div class="dialog">
60
60
  <div>