rabl 0.14.1 → 0.14.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +2 -1
- data/CHANGELOG.md +5 -0
- data/README.md +0 -1
- data/fixtures/ashared/NOTES +10 -0
- data/fixtures/ashared/views_rails_6/layouts/application.html.erb +13 -0
- data/fixtures/ashared/views_rails_6/posts/_show_footer_script.js.erb +1 -0
- data/fixtures/ashared/views_rails_6/posts/date.rabl +3 -0
- data/fixtures/ashared/views_rails_6/posts/index.html.erb +3 -0
- data/fixtures/ashared/views_rails_6/posts/index.rabl +12 -0
- data/fixtures/ashared/views_rails_6/posts/renderer.rabl +8 -0
- data/fixtures/ashared/views_rails_6/posts/renderer_partial.rabl +4 -0
- data/fixtures/ashared/views_rails_6/posts/show.html.erb +3 -0
- data/fixtures/ashared/views_rails_6/posts/show.rabl +25 -0
- data/fixtures/ashared/views_rails_6/posts/show.rabl_test_v1.rabl +7 -0
- data/fixtures/ashared/views_rails_6/users/index.json.rabl +3 -0
- data/fixtures/ashared/views_rails_6/users/phone_number.json.rabl +8 -0
- data/fixtures/ashared/views_rails_6/users/phone_number.xml.rabl +1 -0
- data/fixtures/ashared/views_rails_6/users/show.json.rabl +16 -0
- data/fixtures/ashared/views_rails_6/users/show.rabl_test_v1.rabl +3 -0
- data/fixtures/padrino_test/app/views +1 -1
- data/fixtures/padrino_test/db/migrate +1 -1
- data/fixtures/padrino_test/models +1 -1
- data/fixtures/padrino_test/test/app/controllers/posts_controller_test.rb +1 -1
- data/fixtures/padrino_test/test/app/controllers/users_controller_test.rb +1 -1
- data/fixtures/rails2/app/models +1 -1
- data/fixtures/rails2/app/views +1 -1
- data/fixtures/rails2/db/migrate +1 -1
- data/fixtures/rails2/test/functionals/posts_controller_test.rb +1 -1
- data/fixtures/rails2/test/functionals/users_controller_test.rb +1 -1
- data/fixtures/rails3/app/models +1 -1
- data/fixtures/rails3/app/views +1 -1
- data/fixtures/rails3/db/migrate +1 -1
- data/fixtures/rails3/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/rails3/test/functional/users_controller_test.rb +1 -1
- data/fixtures/rails3_2/app/models +1 -1
- data/fixtures/rails3_2/app/views +1 -1
- data/fixtures/rails3_2/db/migrate +1 -1
- data/fixtures/rails3_2/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/rails3_2/test/functional/users_controller_test.rb +1 -1
- data/fixtures/rails4/app/models +1 -1
- data/fixtures/rails4/app/views +1 -1
- data/fixtures/rails4/db/migrate +1 -1
- data/fixtures/rails4/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/rails4/test/functional/users_controller_test.rb +1 -1
- data/fixtures/rails5/app/controllers/posts_controller.rb +1 -1
- data/fixtures/rails5/app/controllers/users_controller.rb +1 -1
- data/fixtures/rails5/app/helpers +1 -1
- data/fixtures/rails5/app/models +1 -1
- data/fixtures/rails5/app/views +1 -1
- data/fixtures/rails5/db/migrate +1 -1
- data/fixtures/rails5/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/rails5/test/functional/users_controller_test.rb +1 -1
- data/fixtures/rails5_api/app/controllers/posts_controller.rb +1 -1
- data/fixtures/rails5_api/app/controllers/users_controller.rb +1 -1
- data/fixtures/rails5_api/app/helpers +1 -1
- data/fixtures/rails5_api/app/models +1 -1
- data/fixtures/rails5_api/app/views +1 -1
- data/fixtures/rails5_api/db/migrate +1 -1
- data/fixtures/rails5_api/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/rails5_api/test/functional/users_controller_test.rb +1 -1
- data/fixtures/rails6/.gitignore +35 -0
- data/fixtures/rails6/Gemfile +58 -0
- data/fixtures/rails6/README.md +24 -0
- data/fixtures/rails6/Rakefile +14 -0
- data/fixtures/rails6/app/assets/config/manifest.js +2 -0
- data/fixtures/rails6/app/assets/images/.keep +0 -0
- data/fixtures/rails6/app/assets/stylesheets/application.css +15 -0
- data/fixtures/rails6/app/channels/application_cable/channel.rb +4 -0
- data/fixtures/rails6/app/channels/application_cable/connection.rb +4 -0
- data/fixtures/rails6/app/controllers/application_controller.rb +2 -0
- data/fixtures/rails6/app/controllers/concerns/.keep +0 -0
- data/fixtures/rails6/app/controllers/posts_controller.rb +17 -0
- data/fixtures/rails6/app/controllers/users_controller.rb +11 -0
- data/fixtures/rails6/app/helpers +1 -0
- data/fixtures/rails6/app/javascript/channels/consumer.js +6 -0
- data/fixtures/rails6/app/javascript/channels/index.js +5 -0
- data/fixtures/rails6/app/javascript/packs/application.js +17 -0
- data/fixtures/rails6/app/jobs/application_job.rb +7 -0
- data/fixtures/rails6/app/mailers/application_mailer.rb +4 -0
- data/fixtures/rails6/app/models +1 -0
- data/fixtures/rails6/app/views +1 -0
- data/fixtures/rails6/babel.config.js +72 -0
- data/fixtures/rails6/bin/bundle +105 -0
- data/fixtures/rails6/bin/rails +9 -0
- data/fixtures/rails6/bin/rake +9 -0
- data/fixtures/rails6/bin/setup +36 -0
- data/fixtures/rails6/bin/spring +17 -0
- data/fixtures/rails6/bin/webpack +19 -0
- data/fixtures/rails6/bin/webpack-dev-server +19 -0
- data/fixtures/rails6/bin/yarn +11 -0
- data/fixtures/rails6/config.ru +5 -0
- data/fixtures/rails6/config/application.rb +19 -0
- data/fixtures/rails6/config/boot.rb +4 -0
- data/fixtures/rails6/config/cable.yml +10 -0
- data/fixtures/rails6/config/credentials.yml.enc +1 -0
- data/fixtures/rails6/config/database.yml +25 -0
- data/fixtures/rails6/config/environment.rb +5 -0
- data/fixtures/rails6/config/environments/development.rb +62 -0
- data/fixtures/rails6/config/environments/production.rb +112 -0
- data/fixtures/rails6/config/environments/test.rb +48 -0
- data/fixtures/rails6/config/initializers/application_controller_renderer.rb +8 -0
- data/fixtures/rails6/config/initializers/assets.rb +14 -0
- data/fixtures/rails6/config/initializers/backtrace_silencers.rb +7 -0
- data/fixtures/rails6/config/initializers/content_security_policy.rb +27 -0
- data/fixtures/rails6/config/initializers/cookies_serializer.rb +5 -0
- data/fixtures/rails6/config/initializers/filter_parameter_logging.rb +4 -0
- data/fixtures/rails6/config/initializers/inflections.rb +16 -0
- data/fixtures/rails6/config/initializers/mime_types.rb +6 -0
- data/fixtures/rails6/config/initializers/wrap_parameters.rb +14 -0
- data/fixtures/rails6/config/locales/en.yml +33 -0
- data/fixtures/rails6/config/puma.rb +35 -0
- data/fixtures/rails6/config/routes.rb +8 -0
- data/fixtures/rails6/config/spring.rb +6 -0
- data/fixtures/rails6/config/storage.yml +34 -0
- data/fixtures/rails6/config/webpack/development.js +5 -0
- data/fixtures/rails6/config/webpack/environment.js +3 -0
- data/fixtures/rails6/config/webpack/production.js +5 -0
- data/fixtures/rails6/config/webpack/test.js +5 -0
- data/fixtures/rails6/config/webpacker.yml +95 -0
- data/fixtures/rails6/db/migrate/20111002092016_create_users.rb +11 -0
- data/fixtures/rails6/db/migrate/20111002092019_create_posts.rb +10 -0
- data/fixtures/rails6/db/migrate/20111002092024_create_phone_numbers.rb +12 -0
- data/fixtures/rails6/db/schema.rb +41 -0
- data/fixtures/rails6/db/seeds.rb +7 -0
- data/fixtures/rails6/lib/assets/.keep +0 -0
- data/fixtures/rails6/lib/tasks/.keep +0 -0
- data/fixtures/rails6/log/.keep +0 -0
- data/fixtures/rails6/package.json +15 -0
- data/fixtures/rails6/postcss.config.js +12 -0
- data/fixtures/rails6/public/404.html +67 -0
- data/fixtures/rails6/public/422.html +67 -0
- data/fixtures/rails6/public/500.html +66 -0
- data/fixtures/rails6/public/apple-touch-icon-precomposed.png +0 -0
- data/fixtures/rails6/public/apple-touch-icon.png +0 -0
- data/fixtures/rails6/public/favicon.ico +0 -0
- data/fixtures/rails6/public/robots.txt +1 -0
- data/fixtures/rails6/storage/.keep +0 -0
- data/fixtures/rails6/test/application_system_test_case.rb +5 -0
- data/fixtures/rails6/test/channels/application_cable/connection_test.rb +11 -0
- data/fixtures/rails6/test/controllers/.keep +0 -0
- data/fixtures/rails6/test/fixtures/.keep +0 -0
- data/fixtures/rails6/test/fixtures/files/.keep +0 -0
- data/fixtures/rails6/test/functional/posts_controller_test.rb +1 -0
- data/fixtures/rails6/test/functional/users_controller_test.rb +1 -0
- data/fixtures/rails6/test/helpers/.keep +0 -0
- data/fixtures/rails6/test/integration/.keep +0 -0
- data/fixtures/rails6/test/mailers/.keep +0 -0
- data/fixtures/rails6/test/models/.keep +0 -0
- data/fixtures/rails6/test/system/.keep +0 -0
- data/fixtures/rails6/test/test_helper.rb +27 -0
- data/fixtures/rails6/tmp/.keep +0 -0
- data/fixtures/rails6/vendor/.keep +0 -0
- data/fixtures/rails6/yarn.lock +7201 -0
- data/fixtures/sinatra_test/db/migrate +1 -1
- data/fixtures/sinatra_test/models +1 -1
- data/fixtures/sinatra_test/test/functional/posts_controller_test.rb +1 -1
- data/fixtures/sinatra_test/test/functional/users_controller_test.rb +1 -1
- data/fixtures/sinatra_test/views +1 -1
- data/lib/rabl.rb +3 -3
- data/lib/rabl/engine.rb +4 -2
- data/lib/rabl/railtie.rb +1 -1
- data/lib/rabl/template.rb +21 -1
- data/lib/rabl/version.rb +1 -1
- data/rabl.gemspec +0 -2
- data/test/integration/rails6/posts_controller_test.rb +185 -0
- data/test/integration/rails6/users_controller_test.rb +87 -0
- metadata +113 -4
@@ -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]
|
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
|
@@ -0,0 +1,33 @@
|
|
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
|
+
# 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
|
+
#
|
29
|
+
# To learn more, please read the Rails Internationalization guide
|
30
|
+
# available at https://guides.rubyonrails.org/i18n.html.
|
31
|
+
|
32
|
+
en:
|
33
|
+
hello: "Hello world"
|
@@ -0,0 +1,35 @@
|
|
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
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }
|
8
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
9
|
+
threads min_threads_count, max_threads_count
|
10
|
+
|
11
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
12
|
+
#
|
13
|
+
port ENV.fetch("PORT") { 3000 }
|
14
|
+
|
15
|
+
# Specifies the `environment` that Puma will run in.
|
16
|
+
#
|
17
|
+
environment ENV.fetch("RAILS_ENV") { "development" }
|
18
|
+
|
19
|
+
# Specifies the number of `workers` to boot in clustered mode.
|
20
|
+
# Workers are forked web server processes. If using threads and workers together
|
21
|
+
# the concurrency of the application would be max `threads` * `workers`.
|
22
|
+
# Workers do not work on JRuby or Windows (both of which do not support
|
23
|
+
# processes).
|
24
|
+
#
|
25
|
+
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
|
26
|
+
|
27
|
+
# Use the `preload_app!` method when specifying a `workers` number.
|
28
|
+
# This directive tells Puma to first boot the application and load code
|
29
|
+
# before forking the application. This takes advantage of Copy On Write
|
30
|
+
# process behavior so workers use less memory.
|
31
|
+
#
|
32
|
+
# preload_app!
|
33
|
+
|
34
|
+
# Allow puma to be restarted by `rails restart` command.
|
35
|
+
plugin :tmp_restart
|
@@ -0,0 +1,34 @@
|
|
1
|
+
test:
|
2
|
+
service: Disk
|
3
|
+
root: <%= Rails.root.join("tmp/storage") %>
|
4
|
+
|
5
|
+
local:
|
6
|
+
service: Disk
|
7
|
+
root: <%= Rails.root.join("storage") %>
|
8
|
+
|
9
|
+
# Use rails credentials:edit to set the AWS secrets (as aws:access_key_id|secret_access_key)
|
10
|
+
# amazon:
|
11
|
+
# service: S3
|
12
|
+
# access_key_id: <%= Rails.application.credentials.dig(:aws, :access_key_id) %>
|
13
|
+
# secret_access_key: <%= Rails.application.credentials.dig(:aws, :secret_access_key) %>
|
14
|
+
# region: us-east-1
|
15
|
+
# bucket: your_own_bucket
|
16
|
+
|
17
|
+
# Remember not to checkin your GCS keyfile to a repository
|
18
|
+
# google:
|
19
|
+
# service: GCS
|
20
|
+
# project: your_project
|
21
|
+
# credentials: <%= Rails.root.join("path/to/gcs.keyfile") %>
|
22
|
+
# bucket: your_own_bucket
|
23
|
+
|
24
|
+
# Use rails credentials:edit to set the Azure Storage secret (as azure_storage:storage_access_key)
|
25
|
+
# microsoft:
|
26
|
+
# service: AzureStorage
|
27
|
+
# storage_account_name: your_account_name
|
28
|
+
# storage_access_key: <%= Rails.application.credentials.dig(:azure_storage, :storage_access_key) %>
|
29
|
+
# container: your_container_name
|
30
|
+
|
31
|
+
# mirror:
|
32
|
+
# service: Mirror
|
33
|
+
# primary: local
|
34
|
+
# mirrors: [ amazon, google, microsoft ]
|
@@ -0,0 +1,95 @@
|
|
1
|
+
# Note: You must restart bin/webpack-dev-server for changes to take effect
|
2
|
+
|
3
|
+
default: &default
|
4
|
+
source_path: app/javascript
|
5
|
+
source_entry_path: packs
|
6
|
+
public_root_path: public
|
7
|
+
public_output_path: packs
|
8
|
+
cache_path: tmp/cache/webpacker
|
9
|
+
check_yarn_integrity: false
|
10
|
+
webpack_compile_output: false
|
11
|
+
|
12
|
+
# Additional paths webpack should lookup modules
|
13
|
+
# ['app/assets', 'engine/foo/app/assets']
|
14
|
+
resolved_paths: []
|
15
|
+
|
16
|
+
# Reload manifest.json on all requests so we reload latest compiled packs
|
17
|
+
cache_manifest: false
|
18
|
+
|
19
|
+
# Extract and emit a css file
|
20
|
+
extract_css: false
|
21
|
+
|
22
|
+
static_assets_extensions:
|
23
|
+
- .jpg
|
24
|
+
- .jpeg
|
25
|
+
- .png
|
26
|
+
- .gif
|
27
|
+
- .tiff
|
28
|
+
- .ico
|
29
|
+
- .svg
|
30
|
+
- .eot
|
31
|
+
- .otf
|
32
|
+
- .ttf
|
33
|
+
- .woff
|
34
|
+
- .woff2
|
35
|
+
|
36
|
+
extensions:
|
37
|
+
- .mjs
|
38
|
+
- .js
|
39
|
+
- .sass
|
40
|
+
- .scss
|
41
|
+
- .css
|
42
|
+
- .module.sass
|
43
|
+
- .module.scss
|
44
|
+
- .module.css
|
45
|
+
- .png
|
46
|
+
- .svg
|
47
|
+
- .gif
|
48
|
+
- .jpeg
|
49
|
+
- .jpg
|
50
|
+
|
51
|
+
development:
|
52
|
+
<<: *default
|
53
|
+
compile: true
|
54
|
+
|
55
|
+
# Verifies that correct packages and versions are installed by inspecting package.json, yarn.lock, and node_modules
|
56
|
+
check_yarn_integrity: true
|
57
|
+
|
58
|
+
# Reference: https://webpack.js.org/configuration/dev-server/
|
59
|
+
dev_server:
|
60
|
+
https: false
|
61
|
+
host: localhost
|
62
|
+
port: 3035
|
63
|
+
public: localhost:3035
|
64
|
+
hmr: false
|
65
|
+
# Inline should be set to true if using HMR
|
66
|
+
inline: true
|
67
|
+
overlay: true
|
68
|
+
compress: true
|
69
|
+
disable_host_check: true
|
70
|
+
use_local_ip: false
|
71
|
+
quiet: false
|
72
|
+
headers:
|
73
|
+
'Access-Control-Allow-Origin': '*'
|
74
|
+
watch_options:
|
75
|
+
ignored: '**/node_modules/**'
|
76
|
+
|
77
|
+
|
78
|
+
test:
|
79
|
+
<<: *default
|
80
|
+
compile: true
|
81
|
+
|
82
|
+
# Compile test packs to a separate directory
|
83
|
+
public_output_path: packs-test
|
84
|
+
|
85
|
+
production:
|
86
|
+
<<: *default
|
87
|
+
|
88
|
+
# Production depends on precompilation of packs prior to booting for performance.
|
89
|
+
compile: false
|
90
|
+
|
91
|
+
# Extract and emit a css file
|
92
|
+
extract_css: true
|
93
|
+
|
94
|
+
# Cache manifest.json for performance
|
95
|
+
cache_manifest: true
|
@@ -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
|
+
# This file is the source Rails uses to define your schema when running `rails
|
6
|
+
# db:schema:load`. When creating a new database, `rails db:schema:load` tends to
|
7
|
+
# be faster and is potentially less error prone than running all of your
|
8
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
9
|
+
# migrations use external dependencies or application code.
|
10
|
+
#
|
11
|
+
# It's strongly recommended that you check this file into your version control system.
|
12
|
+
|
13
|
+
ActiveRecord::Schema.define(version: 2011_10_02_092024) do
|
14
|
+
|
15
|
+
create_table "phone_numbers", force: :cascade do |t|
|
16
|
+
t.integer "user_id"
|
17
|
+
t.boolean "is_primary"
|
18
|
+
t.string "area_code"
|
19
|
+
t.string "prefix"
|
20
|
+
t.string "suffix"
|
21
|
+
t.string "name"
|
22
|
+
end
|
23
|
+
|
24
|
+
create_table "posts", force: :cascade do |t|
|
25
|
+
t.integer "user_id"
|
26
|
+
t.string "title"
|
27
|
+
t.text "body"
|
28
|
+
t.datetime "created_at", precision: 6, null: false
|
29
|
+
t.datetime "updated_at", precision: 6, null: false
|
30
|
+
end
|
31
|
+
|
32
|
+
create_table "users", force: :cascade do |t|
|
33
|
+
t.string "username"
|
34
|
+
t.string "email"
|
35
|
+
t.string "location"
|
36
|
+
t.boolean "is_admin"
|
37
|
+
t.datetime "created_at", precision: 6, null: false
|
38
|
+
t.datetime "updated_at", precision: 6, null: false
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
@@ -0,0 +1,7 @@
|
|
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)
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
"name": "rails6",
|
3
|
+
"private": true,
|
4
|
+
"dependencies": {
|
5
|
+
"@rails/actioncable": "^6.0.0-alpha",
|
6
|
+
"@rails/activestorage": "^6.0.0-alpha",
|
7
|
+
"@rails/ujs": "^6.0.0-alpha",
|
8
|
+
"@rails/webpacker": "^4.0.7",
|
9
|
+
"turbolinks": "^5.2.0"
|
10
|
+
},
|
11
|
+
"version": "0.1.0",
|
12
|
+
"devDependencies": {
|
13
|
+
"webpack-dev-server": "^3.7.2"
|
14
|
+
}
|
15
|
+
}
|
@@ -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>
|