activeadmin-nested-namespaces 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (137) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +18 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +162 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +140 -0
  9. data/Rakefile +6 -0
  10. data/activeadmin-nested-namespaces.gemspec +30 -0
  11. data/bin/bundle +105 -0
  12. data/bin/console +14 -0
  13. data/bin/htmldiff +29 -0
  14. data/bin/ldiff +29 -0
  15. data/bin/nokogiri +29 -0
  16. data/bin/rackup +29 -0
  17. data/bin/rails +29 -0
  18. data/bin/rake +29 -0
  19. data/bin/rspec +29 -0
  20. data/bin/sass +29 -0
  21. data/bin/sass-convert +29 -0
  22. data/bin/scss +29 -0
  23. data/bin/setup +8 -0
  24. data/bin/sprockets +29 -0
  25. data/bin/thor +29 -0
  26. data/dummy_app/.gitignore +23 -0
  27. data/dummy_app/Gemfile +57 -0
  28. data/dummy_app/Gemfile.lock +260 -0
  29. data/dummy_app/README.md +24 -0
  30. data/dummy_app/Rakefile +8 -0
  31. data/dummy_app/app/admin/admin_users.rb +28 -0
  32. data/dummy_app/app/admin/dashboard.rb +13 -0
  33. data/dummy_app/app/admin/site1/dashboard.rb +13 -0
  34. data/dummy_app/app/admin/site1/posts.rb +3 -0
  35. data/dummy_app/app/admin/site2/dashboard.rb +12 -0
  36. data/dummy_app/app/admin/site3/demo/dashboard.rb +13 -0
  37. data/dummy_app/app/admin/site3/demo/posts.rb +15 -0
  38. data/dummy_app/app/assets/config/manifest.js +3 -0
  39. data/dummy_app/app/assets/images/.keep +0 -0
  40. data/dummy_app/app/assets/javascripts/active_admin.js.coffee +1 -0
  41. data/dummy_app/app/assets/javascripts/application.js +15 -0
  42. data/dummy_app/app/assets/javascripts/cable.js +13 -0
  43. data/dummy_app/app/assets/javascripts/channels/.keep +0 -0
  44. data/dummy_app/app/assets/stylesheets/active_admin.scss +17 -0
  45. data/dummy_app/app/assets/stylesheets/application.css +15 -0
  46. data/dummy_app/app/channels/application_cable/channel.rb +4 -0
  47. data/dummy_app/app/channels/application_cable/connection.rb +4 -0
  48. data/dummy_app/app/controllers/application_controller.rb +3 -0
  49. data/dummy_app/app/controllers/concerns/.keep +0 -0
  50. data/dummy_app/app/helpers/application_helper.rb +2 -0
  51. data/dummy_app/app/jobs/application_job.rb +2 -0
  52. data/dummy_app/app/mailers/application_mailer.rb +4 -0
  53. data/dummy_app/app/models/admin_user.rb +10 -0
  54. data/dummy_app/app/models/application_record.rb +3 -0
  55. data/dummy_app/app/models/concerns/.keep +0 -0
  56. data/dummy_app/app/models/post.rb +2 -0
  57. data/dummy_app/app/views/layouts/application.html.erb +14 -0
  58. data/dummy_app/app/views/layouts/mailer.html.erb +13 -0
  59. data/dummy_app/app/views/layouts/mailer.text.erb +1 -0
  60. data/dummy_app/bin/bundle +3 -0
  61. data/dummy_app/bin/byebug +29 -0
  62. data/dummy_app/bin/listen +29 -0
  63. data/dummy_app/bin/nokogiri +29 -0
  64. data/dummy_app/bin/puma +29 -0
  65. data/dummy_app/bin/pumactl +29 -0
  66. data/dummy_app/bin/rackup +29 -0
  67. data/dummy_app/bin/rails +4 -0
  68. data/dummy_app/bin/rake +4 -0
  69. data/dummy_app/bin/sass +29 -0
  70. data/dummy_app/bin/sass-convert +29 -0
  71. data/dummy_app/bin/scss +29 -0
  72. data/dummy_app/bin/setup +38 -0
  73. data/dummy_app/bin/spring +29 -0
  74. data/dummy_app/bin/sprockets +29 -0
  75. data/dummy_app/bin/thor +29 -0
  76. data/dummy_app/bin/tilt +29 -0
  77. data/dummy_app/bin/update +29 -0
  78. data/dummy_app/bin/yarn +11 -0
  79. data/dummy_app/config.ru +5 -0
  80. data/dummy_app/config/application.rb +19 -0
  81. data/dummy_app/config/boot.rb +3 -0
  82. data/dummy_app/config/cable.yml +10 -0
  83. data/dummy_app/config/database.yml +25 -0
  84. data/dummy_app/config/environment.rb +5 -0
  85. data/dummy_app/config/environments/development.rb +54 -0
  86. data/dummy_app/config/environments/production.rb +91 -0
  87. data/dummy_app/config/environments/test.rb +42 -0
  88. data/dummy_app/config/initializers/active_admin.rb +313 -0
  89. data/dummy_app/config/initializers/active_admin_nested_namespace.rb +5 -0
  90. data/dummy_app/config/initializers/application_controller_renderer.rb +6 -0
  91. data/dummy_app/config/initializers/assets.rb +14 -0
  92. data/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
  93. data/dummy_app/config/initializers/cookies_serializer.rb +5 -0
  94. data/dummy_app/config/initializers/devise.rb +290 -0
  95. data/dummy_app/config/initializers/filter_parameter_logging.rb +4 -0
  96. data/dummy_app/config/initializers/inflections.rb +16 -0
  97. data/dummy_app/config/initializers/mime_types.rb +4 -0
  98. data/dummy_app/config/initializers/wrap_parameters.rb +14 -0
  99. data/dummy_app/config/locales/devise.en.yml +64 -0
  100. data/dummy_app/config/locales/en.yml +33 -0
  101. data/dummy_app/config/puma.rb +56 -0
  102. data/dummy_app/config/routes.rb +20 -0
  103. data/dummy_app/config/secrets.yml +32 -0
  104. data/dummy_app/config/spring.rb +6 -0
  105. data/dummy_app/db/migrate/20180823051209_devise_create_admin_users.rb +44 -0
  106. data/dummy_app/db/migrate/20180823051213_create_active_admin_comments.rb +17 -0
  107. data/dummy_app/db/migrate/20180823051222_create_posts.rb +12 -0
  108. data/dummy_app/db/schema.rb +41 -0
  109. data/dummy_app/db/seeds.rb +8 -0
  110. data/dummy_app/lib/assets/.keep +0 -0
  111. data/dummy_app/lib/tasks/.keep +0 -0
  112. data/dummy_app/log/.keep +0 -0
  113. data/dummy_app/package.json +5 -0
  114. data/dummy_app/public/404.html +67 -0
  115. data/dummy_app/public/422.html +67 -0
  116. data/dummy_app/public/500.html +66 -0
  117. data/dummy_app/public/apple-touch-icon-precomposed.png +0 -0
  118. data/dummy_app/public/apple-touch-icon.png +0 -0
  119. data/dummy_app/public/favicon.ico +0 -0
  120. data/dummy_app/public/robots.txt +1 -0
  121. data/dummy_app/test/application_system_test_case.rb +5 -0
  122. data/dummy_app/test/controllers/.keep +0 -0
  123. data/dummy_app/test/fixtures/.keep +0 -0
  124. data/dummy_app/test/fixtures/admin_users.yml +11 -0
  125. data/dummy_app/test/fixtures/files/.keep +0 -0
  126. data/dummy_app/test/helpers/.keep +0 -0
  127. data/dummy_app/test/integration/.keep +0 -0
  128. data/dummy_app/test/mailers/.keep +0 -0
  129. data/dummy_app/test/models/.keep +0 -0
  130. data/dummy_app/test/models/admin_user_test.rb +7 -0
  131. data/dummy_app/test/system/.keep +0 -0
  132. data/dummy_app/test/test_helper.rb +9 -0
  133. data/dummy_app/tmp/.keep +0 -0
  134. data/dummy_app/vendor/.keep +0 -0
  135. data/lib/active_admin/nested_namespace.rb +270 -0
  136. data/lib/active_admin/nested_namespace/version.rb +5 -0
  137. metadata +236 -0
@@ -0,0 +1,56 @@
1
+ # Puma can serve each request in a thread from an internal thread pool.
2
+ # The `threads` method setting takes two numbers: a minimum and maximum.
3
+ # Any libraries that use thread pools should be configured to match
4
+ # the maximum value specified for Puma. Default is set to 5 threads for minimum
5
+ # and maximum; this matches the default thread size of Active Record.
6
+ #
7
+ threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
8
+ threads threads_count, threads_count
9
+
10
+ # Specifies the `port` that Puma will listen on to receive requests; default is 3000.
11
+ #
12
+ port ENV.fetch("PORT") { 3000 }
13
+
14
+ # Specifies the `environment` that Puma will run in.
15
+ #
16
+ environment ENV.fetch("RAILS_ENV") { "development" }
17
+
18
+ # Specifies the number of `workers` to boot in clustered mode.
19
+ # Workers are forked webserver processes. If using threads and workers together
20
+ # the concurrency of the application would be max `threads` * `workers`.
21
+ # Workers do not work on JRuby or Windows (both of which do not support
22
+ # processes).
23
+ #
24
+ # workers ENV.fetch("WEB_CONCURRENCY") { 2 }
25
+
26
+ # Use the `preload_app!` method when specifying a `workers` number.
27
+ # This directive tells Puma to first boot the application and load code
28
+ # before forking the application. This takes advantage of Copy On Write
29
+ # process behavior so workers use less memory. If you use this option
30
+ # you need to make sure to reconnect any threads in the `on_worker_boot`
31
+ # block.
32
+ #
33
+ # preload_app!
34
+
35
+ # If you are preloading your application and using Active Record, it's
36
+ # recommended that you close any connections to the database before workers
37
+ # are forked to prevent connection leakage.
38
+ #
39
+ # before_fork do
40
+ # ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord)
41
+ # end
42
+
43
+ # The code in the `on_worker_boot` will be called if you are using
44
+ # clustered mode by specifying a number of `workers`. After each worker
45
+ # process is booted, this block will be run. If you are using the `preload_app!`
46
+ # option, you will want to use this block to reconnect to any threads
47
+ # or connections that may have been created at application boot, as Ruby
48
+ # cannot share connections between processes.
49
+ #
50
+ # on_worker_boot do
51
+ # ActiveRecord::Base.establish_connection if defined?(ActiveRecord)
52
+ # end
53
+ #
54
+
55
+ # Allow puma to be restarted by `rails restart` command.
56
+ plugin :tmp_restart
@@ -0,0 +1,20 @@
1
+ Rails.application.routes.draw do
2
+ devise_for :admin_users, ActiveAdmin::Devise.config
3
+
4
+ namespace :site1 do
5
+ devise_for :admin_users, ActiveAdmin::Devise.config
6
+ end
7
+
8
+ namespace :site2 do
9
+ devise_for :admin_users, ActiveAdmin::Devise.config
10
+ end
11
+
12
+ namespace :site3 do
13
+ namespace :demo do
14
+ devise_for :admin_users, ActiveAdmin::Devise.config
15
+ end
16
+ end
17
+
18
+ ActiveAdmin.routes(self)
19
+ # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
20
+ end
@@ -0,0 +1,32 @@
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 `rails 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
+ # Shared secrets are available across all environments.
14
+
15
+ # shared:
16
+ # api_key: a1B2c3D4e5F6
17
+
18
+ # Environmental secrets are only available for that specific environment.
19
+
20
+ development:
21
+ secret_key_base: d6f1ff8a3c4195b28288e2795af3c83460073024636fba77e05a1f75f6049f2820af0e4770b560866fa1fbb7d16b0aa662dca4f15a01478a5d62531dc7ea3201
22
+
23
+ test:
24
+ secret_key_base: f4eb0bf6bb5641707d6b8e5d420fb506793c1c05a9d542a29e6a04f60efd86f6bfb6e36c350edd45395f6fa37fa141ad0402b2d8d2195aa96c045687e914efdb
25
+
26
+ # Do not keep production secrets in the unencrypted secrets file.
27
+ # Instead, either read values from the environment.
28
+ # Or, use `bin/rails secrets:setup` to configure encrypted secrets
29
+ # and move the `production:` environment over there.
30
+
31
+ production:
32
+ secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
@@ -0,0 +1,6 @@
1
+ %w(
2
+ .ruby-version
3
+ .rbenv-vars
4
+ tmp/restart.txt
5
+ tmp/caching-dev.txt
6
+ ).each { |path| Spring.watch(path) }
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ class DeviseCreateAdminUsers < ActiveRecord::Migration[5.1]
4
+ def change
5
+ create_table :admin_users do |t|
6
+ ## Database authenticatable
7
+ t.string :email, null: false, default: ""
8
+ t.string :encrypted_password, null: false, default: ""
9
+
10
+ ## Recoverable
11
+ t.string :reset_password_token
12
+ t.datetime :reset_password_sent_at
13
+
14
+ ## Rememberable
15
+ t.datetime :remember_created_at
16
+
17
+ ## Trackable
18
+ # t.integer :sign_in_count, default: 0, null: false
19
+ # t.datetime :current_sign_in_at
20
+ # t.datetime :last_sign_in_at
21
+ # t.string :current_sign_in_ip
22
+ # t.string :last_sign_in_ip
23
+
24
+ ## Confirmable
25
+ # t.string :confirmation_token
26
+ # t.datetime :confirmed_at
27
+ # t.datetime :confirmation_sent_at
28
+ # t.string :unconfirmed_email # Only if using reconfirmable
29
+
30
+ ## Lockable
31
+ # t.integer :failed_attempts, default: 0, null: false # Only if lock strategy is :failed_attempts
32
+ # t.string :unlock_token # Only if unlock strategy is :email or :both
33
+ # t.datetime :locked_at
34
+
35
+
36
+ t.timestamps null: false
37
+ end
38
+
39
+ add_index :admin_users, :email, unique: true
40
+ add_index :admin_users, :reset_password_token, unique: true
41
+ # add_index :admin_users, :confirmation_token, unique: true
42
+ # add_index :admin_users, :unlock_token, unique: true
43
+ end
44
+ end
@@ -0,0 +1,17 @@
1
+ class CreateActiveAdminComments < ActiveRecord::Migration::Current
2
+ def self.up
3
+ create_table :active_admin_comments do |t|
4
+ t.string :namespace
5
+ t.text :body
6
+ t.references :resource, polymorphic: true
7
+ t.references :author, polymorphic: true
8
+ t.timestamps
9
+ end
10
+ add_index :active_admin_comments, [:namespace]
11
+
12
+ end
13
+
14
+ def self.down
15
+ drop_table :active_admin_comments
16
+ end
17
+ end
@@ -0,0 +1,12 @@
1
+ class CreatePosts < ActiveRecord::Migration[5.0]
2
+ def change
3
+ create_table :posts do |t|
4
+ t.string :title
5
+ t.text :content
6
+ t.string :author
7
+ t.boolean :is_published
8
+
9
+ t.timestamps
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,41 @@
1
+ # This file is auto-generated from the current state of the database. Instead
2
+ # of editing this file, please use the migrations feature of Active Record to
3
+ # incrementally modify your database, and then regenerate this schema definition.
4
+ #
5
+ # Note that this schema.rb definition is the authoritative source for your
6
+ # database schema. If you need to create the application database on another
7
+ # system, you should be using db:schema:load, not running all the migrations
8
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
10
+ #
11
+ # It's strongly recommended that you check this file into your version control system.
12
+
13
+ ActiveRecord::Schema.define(version: 20180823051213) do
14
+
15
+ create_table "active_admin_comments", force: :cascade do |t|
16
+ t.string "namespace"
17
+ t.text "body"
18
+ t.string "resource_type"
19
+ t.integer "resource_id"
20
+ t.string "author_type"
21
+ t.integer "author_id"
22
+ t.datetime "created_at", null: false
23
+ t.datetime "updated_at", null: false
24
+ t.index ["author_type", "author_id"], name: "index_active_admin_comments_on_author_type_and_author_id"
25
+ t.index ["namespace"], name: "index_active_admin_comments_on_namespace"
26
+ t.index ["resource_type", "resource_id"], name: "index_active_admin_comments_on_resource_type_and_resource_id"
27
+ end
28
+
29
+ create_table "admin_users", force: :cascade do |t|
30
+ t.string "email", default: "", null: false
31
+ t.string "encrypted_password", default: "", null: false
32
+ t.string "reset_password_token"
33
+ t.datetime "reset_password_sent_at"
34
+ t.datetime "remember_created_at"
35
+ t.datetime "created_at", null: false
36
+ t.datetime "updated_at", null: false
37
+ t.index ["email"], name: "index_admin_users_on_email", unique: true
38
+ t.index ["reset_password_token"], name: "index_admin_users_on_reset_password_token", unique: true
39
+ end
40
+
41
+ end
@@ -0,0 +1,8 @@
1
+ # This file should contain all the record creation needed to seed the database with its default values.
2
+ # The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup).
3
+ #
4
+ # Examples:
5
+ #
6
+ # movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }])
7
+ # Character.create(name: 'Luke', movie: movies.first)
8
+ AdminUser.create!(email: 'admin@example.com', password: 'password', password_confirmation: 'password') if Rails.env.development?
File without changes
File without changes
File without changes
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dummy_app",
3
+ "private": true,
4
+ "dependencies": {}
5
+ }
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page 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
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page 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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/404.html -->
59
+ <div class="dialog">
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>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,67 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page 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
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page 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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/422.html -->
59
+ <div class="dialog">
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>
65
+ </div>
66
+ </body>
67
+ </html>
@@ -0,0 +1,66 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ .rails-default-error-page {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ .rails-default-error-page div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ .rails-default-error-page 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
+ .rails-default-error-page h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ .rails-default-error-page 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
+ }
54
+ </style>
55
+ </head>
56
+
57
+ <body class="rails-default-error-page">
58
+ <!-- This file lives in public/500.html -->
59
+ <div class="dialog">
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
64
+ </div>
65
+ </body>
66
+ </html>