active_record_has 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +8 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/README.md +35 -0
- data/Rakefile +16 -0
- data/lib/active_record_has/reflection_methods.rb +15 -0
- data/lib/active_record_has/through_methods.rb +43 -0
- data/lib/active_record_has/version.rb +5 -0
- data/lib/active_record_has.rb +23 -0
- data/sample/Rakefile +8 -0
- data/sample/app/assets/stylesheets/application.css +1 -0
- data/sample/app/controllers/application_controller.rb +4 -0
- data/sample/app/helpers/application_helper.rb +4 -0
- data/sample/app/importers/categories_importer.rb +7 -0
- data/sample/app/importers/tags_importer.rb +7 -0
- data/sample/app/models/application_record.rb +6 -0
- data/sample/app/models/article.rb +7 -0
- data/sample/app/models/article_tag.rb +6 -0
- data/sample/app/models/category.rb +5 -0
- data/sample/app/models/concerns/.keep +0 -0
- data/sample/app/models/tag.rb +6 -0
- data/sample/app/views/layouts/application.html.erb +15 -0
- data/sample/bin/rails +6 -0
- data/sample/bin/rake +6 -0
- data/sample/bin/setup +35 -0
- data/sample/config/application.rb +37 -0
- data/sample/config/boot.rb +7 -0
- data/sample/config/credentials.yml.enc +1 -0
- data/sample/config/database.yml +25 -0
- data/sample/config/environment.rb +7 -0
- data/sample/config/environments/development.rb +61 -0
- data/sample/config/environments/production.rb +75 -0
- data/sample/config/environments/test.rb +56 -0
- data/sample/config/initializers/content_security_policy.rb +27 -0
- data/sample/config/initializers/filter_parameter_logging.rb +10 -0
- data/sample/config/initializers/inflections.rb +18 -0
- data/sample/config/initializers/permissions_policy.rb +15 -0
- data/sample/config/locales/en.yml +31 -0
- data/sample/config/master.key +1 -0
- data/sample/config/puma.rb +37 -0
- data/sample/config/routes.rb +12 -0
- data/sample/config.ru +8 -0
- data/sample/db/data/categories.yaml +3 -0
- data/sample/db/data/tags.yaml +3 -0
- data/sample/db/migrate/20240711153022_create_categories.rb +11 -0
- data/sample/db/migrate/20240711153202_create_tags.rb +11 -0
- data/sample/db/migrate/20240711161946_create_articles.rb +13 -0
- data/sample/db/migrate/20240711162033_create_article_tags.rb +12 -0
- data/sample/db/schema.rb +49 -0
- data/sample/db/seeds.rb +6 -0
- data/sample/public/404.html +67 -0
- data/sample/public/422.html +67 -0
- data/sample/public/500.html +66 -0
- data/sample/public/apple-touch-icon-precomposed.png +0 -0
- data/sample/public/apple-touch-icon.png +0 -0
- data/sample/public/favicon.ico +0 -0
- data/sample/public/robots.txt +1 -0
- data/sample/storage/development.sqlite3 +0 -0
- data/sample/storage/development.sqlite3-shm +0 -0
- data/sample/storage/development.sqlite3-wal +0 -0
- data/sample/storage/test.sqlite3 +0 -0
- data/sample/tmp/local_secret.txt +1 -0
- data/sig/active_record_has.rbs +4 -0
- metadata +123 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/integer/time"
|
4
|
+
|
5
|
+
Rails.application.configure do
|
6
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
7
|
+
|
8
|
+
# Code is not reloaded between requests.
|
9
|
+
config.enable_reloading = false
|
10
|
+
|
11
|
+
# Eager load code on boot. This eager loads most of Rails and
|
12
|
+
# your application in memory, allowing both threaded web servers
|
13
|
+
# and those relying on copy on write to perform better.
|
14
|
+
# Rake tasks automatically ignore this option for performance.
|
15
|
+
config.eager_load = true
|
16
|
+
|
17
|
+
# Full error reports are disabled and caching is turned on.
|
18
|
+
config.consider_all_requests_local = false
|
19
|
+
config.action_controller.perform_caching = true
|
20
|
+
|
21
|
+
# Ensures that a master key has been made available in ENV["RAILS_MASTER_KEY"], config/master.key, or an environment
|
22
|
+
# key such as config/credentials/production.key. This key is used to decrypt credentials (and other encrypted files).
|
23
|
+
# config.require_master_key = true
|
24
|
+
|
25
|
+
# Disable serving static files from `public/`, relying on NGINX/Apache to do so instead.
|
26
|
+
# config.public_file_server.enabled = false
|
27
|
+
|
28
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
29
|
+
# config.asset_host = "http://assets.example.com"
|
30
|
+
|
31
|
+
# Specifies the header that your server uses for sending files.
|
32
|
+
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
|
33
|
+
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
|
34
|
+
|
35
|
+
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
|
36
|
+
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
|
37
|
+
# config.assume_ssl = true
|
38
|
+
|
39
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
40
|
+
config.force_ssl = true
|
41
|
+
|
42
|
+
# Log to STDOUT by default
|
43
|
+
config.logger = ActiveSupport::Logger.new($stdout)
|
44
|
+
.tap { |logger| logger.formatter = ::Logger::Formatter.new }
|
45
|
+
.then { |logger| ActiveSupport::TaggedLogging.new(logger) }
|
46
|
+
|
47
|
+
# Prepend all log lines with the following tags.
|
48
|
+
config.log_tags = [:request_id]
|
49
|
+
|
50
|
+
# "info" includes generic and useful information about system operation, but avoids logging too much
|
51
|
+
# information to avoid inadvertent exposure of personally identifiable information (PII). If you
|
52
|
+
# want to log everything, set the level to "debug".
|
53
|
+
config.log_level = ENV.fetch("RAILS_LOG_LEVEL", "info")
|
54
|
+
|
55
|
+
# Use a different cache store in production.
|
56
|
+
# config.cache_store = :mem_cache_store
|
57
|
+
|
58
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
59
|
+
# the I18n.default_locale when a translation cannot be found).
|
60
|
+
config.i18n.fallbacks = true
|
61
|
+
|
62
|
+
# Don't log any deprecations.
|
63
|
+
config.active_support.report_deprecations = false
|
64
|
+
|
65
|
+
# Do not dump schema after migrations.
|
66
|
+
config.active_record.dump_schema_after_migration = false
|
67
|
+
|
68
|
+
# Enable DNS rebinding protection and other `Host` header attacks.
|
69
|
+
# config.hosts = [
|
70
|
+
# "example.com", # Allow requests from example.com
|
71
|
+
# /.*\.example\.com/ # Allow requests from subdomains like `www.example.com`
|
72
|
+
# ]
|
73
|
+
# Skip DNS rebinding protection for the default health check endpoint.
|
74
|
+
# config.host_authorization = { exclude: ->(request) { request.path == "/up" } }
|
75
|
+
end
|
@@ -0,0 +1,56 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "active_support/core_ext/integer/time"
|
4
|
+
|
5
|
+
# The test environment is used exclusively to run your application's
|
6
|
+
# test suite. You never need to work with it otherwise. Remember that
|
7
|
+
# your test database is "scratch space" for the test suite and is wiped
|
8
|
+
# and recreated between test runs. Don't rely on the data there!
|
9
|
+
|
10
|
+
Rails.application.configure do
|
11
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
12
|
+
|
13
|
+
# While tests run files are not watched, reloading is not necessary.
|
14
|
+
config.enable_reloading = false
|
15
|
+
|
16
|
+
# Eager loading loads your entire application. When running a single test locally,
|
17
|
+
# this is usually not necessary, and can slow down your test suite. However, it's
|
18
|
+
# recommended that you enable it in continuous integration systems to ensure eager
|
19
|
+
# loading is working properly before deploying your code.
|
20
|
+
config.eager_load = ENV["CI"].present?
|
21
|
+
|
22
|
+
# Configure public file server for tests with Cache-Control for performance.
|
23
|
+
config.public_file_server.enabled = true
|
24
|
+
config.public_file_server.headers = {
|
25
|
+
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
|
26
|
+
}
|
27
|
+
|
28
|
+
# Show full error reports and disable caching.
|
29
|
+
config.consider_all_requests_local = true
|
30
|
+
config.action_controller.perform_caching = false
|
31
|
+
config.cache_store = :null_store
|
32
|
+
|
33
|
+
# Render exception templates for rescuable exceptions and raise for other exceptions.
|
34
|
+
config.action_dispatch.show_exceptions = :rescuable
|
35
|
+
|
36
|
+
# Disable request forgery protection in test environment.
|
37
|
+
config.action_controller.allow_forgery_protection = false
|
38
|
+
|
39
|
+
# Print deprecation notices to the stderr.
|
40
|
+
config.active_support.deprecation = :stderr
|
41
|
+
|
42
|
+
# Raise exceptions for disallowed deprecations.
|
43
|
+
config.active_support.disallowed_deprecation = :raise
|
44
|
+
|
45
|
+
# Tell Active Support which deprecation messages to disallow.
|
46
|
+
config.active_support.disallowed_deprecation_warnings = []
|
47
|
+
|
48
|
+
# Raises error for missing translations.
|
49
|
+
# config.i18n.raise_on_missing_translations = true
|
50
|
+
|
51
|
+
# Annotate rendered view with file names.
|
52
|
+
# config.action_view.annotate_rendered_view_with_filenames = true
|
53
|
+
|
54
|
+
# Raise error when a before_action's only/except options reference missing actions
|
55
|
+
config.action_controller.raise_on_missing_callback_actions = true
|
56
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Define an application-wide content security policy.
|
6
|
+
# See the Securing Rails Applications Guide for more information:
|
7
|
+
# https://guides.rubyonrails.org/security.html#content-security-policy-header
|
8
|
+
|
9
|
+
# Rails.application.configure do
|
10
|
+
# config.content_security_policy do |policy|
|
11
|
+
# policy.default_src :self, :https
|
12
|
+
# policy.font_src :self, :https, :data
|
13
|
+
# policy.img_src :self, :https, :data
|
14
|
+
# policy.object_src :none
|
15
|
+
# policy.script_src :self, :https
|
16
|
+
# policy.style_src :self, :https
|
17
|
+
# # Specify URI for violation reports
|
18
|
+
# # policy.report_uri "/csp-violation-report-endpoint"
|
19
|
+
# end
|
20
|
+
#
|
21
|
+
# # Generate session nonces for permitted importmap, inline scripts, and inline styles.
|
22
|
+
# config.content_security_policy_nonce_generator = ->(request) { request.session.id.to_s }
|
23
|
+
# config.content_security_policy_nonce_directives = %w(script-src style-src)
|
24
|
+
#
|
25
|
+
# # Report violations without enforcing the policy.
|
26
|
+
# # config.content_security_policy_report_only = true
|
27
|
+
# end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Configure parameters to be partially matched (e.g. passw matches password) and filtered from the log file.
|
6
|
+
# Use this to limit dissemination of sensitive information.
|
7
|
+
# See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors.
|
8
|
+
Rails.application.config.filter_parameters += %i[
|
9
|
+
passw secret token _key crypt salt certificate otp ssn
|
10
|
+
]
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Add new inflection rules using the following format. Inflections
|
6
|
+
# are locale specific, and you may define rules for as many different
|
7
|
+
# locales as you wish. All of these examples are active by default:
|
8
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
9
|
+
# inflect.plural /^(ox)$/i, "\\1en"
|
10
|
+
# inflect.singular /^(ox)en/i, "\\1"
|
11
|
+
# inflect.irregular "person", "people"
|
12
|
+
# inflect.uncountable %w( fish sheep )
|
13
|
+
# end
|
14
|
+
|
15
|
+
# These inflection rules are supported but not enabled by default:
|
16
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
17
|
+
# inflect.acronym "RESTful"
|
18
|
+
# end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Be sure to restart your server when you modify this file.
|
4
|
+
|
5
|
+
# Define an application-wide HTTP permissions policy. For further
|
6
|
+
# information see: https://developers.google.com/web/updates/2018/06/feature-policy
|
7
|
+
|
8
|
+
# Rails.application.config.permissions_policy do |policy|
|
9
|
+
# policy.camera :none
|
10
|
+
# policy.gyroscope :none
|
11
|
+
# policy.microphone :none
|
12
|
+
# policy.usb :none
|
13
|
+
# policy.fullscreen :self
|
14
|
+
# policy.payment :self, "https://secure.example.com"
|
15
|
+
# end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Files in the config/locales directory are used for internationalization and
|
2
|
+
# are automatically loaded by Rails. If you want to use locales other than
|
3
|
+
# 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 about the API, please read the Rails Internationalization guide
|
20
|
+
# at https://guides.rubyonrails.org/i18n.html.
|
21
|
+
#
|
22
|
+
# Be aware that YAML interprets the following case-insensitive strings as
|
23
|
+
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings
|
24
|
+
# must be quoted to be interpreted as strings. For example:
|
25
|
+
#
|
26
|
+
# en:
|
27
|
+
# "yes": yup
|
28
|
+
# enabled: "ON"
|
29
|
+
|
30
|
+
en:
|
31
|
+
hello: "Hello world"
|
@@ -0,0 +1 @@
|
|
1
|
+
80068b39fb9547cdc248628705797974
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This configuration file will be evaluated by Puma. The top-level methods that
|
4
|
+
# are invoked here are part of Puma's configuration DSL. For more information
|
5
|
+
# about methods provided by the DSL, see https://puma.io/puma/Puma/DSL.html.
|
6
|
+
|
7
|
+
# Puma can serve each request in a thread from an internal thread pool.
|
8
|
+
# The `threads` method setting takes two numbers: a minimum and maximum.
|
9
|
+
# Any libraries that use thread pools should be configured to match
|
10
|
+
# the maximum value specified for Puma. Default is set to 5 threads for minimum
|
11
|
+
# and maximum; this matches the default thread size of Active Record.
|
12
|
+
max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5)
|
13
|
+
min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count }
|
14
|
+
threads min_threads_count, max_threads_count
|
15
|
+
|
16
|
+
# Specifies that the worker count should equal the number of processors in production.
|
17
|
+
if ENV["RAILS_ENV"] == "production"
|
18
|
+
require "concurrent-ruby"
|
19
|
+
worker_count = Integer(ENV.fetch("WEB_CONCURRENCY") { Concurrent.physical_processor_count })
|
20
|
+
workers worker_count if worker_count > 1
|
21
|
+
end
|
22
|
+
|
23
|
+
# Specifies the `worker_timeout` threshold that Puma will use to wait before
|
24
|
+
# terminating a worker in development environments.
|
25
|
+
worker_timeout 3600 if ENV.fetch("RAILS_ENV", "development") == "development"
|
26
|
+
|
27
|
+
# Specifies the `port` that Puma will listen on to receive requests; default is 3000.
|
28
|
+
port ENV.fetch("PORT", 3000)
|
29
|
+
|
30
|
+
# Specifies the `environment` that Puma will run in.
|
31
|
+
environment ENV.fetch("RAILS_ENV", "development")
|
32
|
+
|
33
|
+
# Specifies the `pidfile` that Puma will use.
|
34
|
+
pidfile ENV.fetch("PIDFILE", "tmp/pids/server.pid")
|
35
|
+
|
36
|
+
# Allow puma to be restarted by `bin/rails restart` command.
|
37
|
+
plugin :tmp_restart
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
Rails.application.routes.draw do
|
4
|
+
# Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html
|
5
|
+
|
6
|
+
# Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.
|
7
|
+
# Can be used by load balancers and uptime monitors to verify that the app is live.
|
8
|
+
get "up" => "rails/health#show", as: :rails_health_check
|
9
|
+
|
10
|
+
# Defines the root path route ("/")
|
11
|
+
# root "posts#index"
|
12
|
+
end
|
data/sample/config.ru
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateArticles < ActiveRecord::Migration[7.1]
|
4
|
+
def change
|
5
|
+
create_table :articles do |t|
|
6
|
+
t.string :title
|
7
|
+
t.belongs_to :category, null: false, foreign_key: true
|
8
|
+
t.text :body
|
9
|
+
|
10
|
+
t.timestamps
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
class CreateArticleTags < ActiveRecord::Migration[7.1]
|
4
|
+
def change
|
5
|
+
create_table :article_tags, primary_key: %i[article_id tag_id] do |t|
|
6
|
+
t.belongs_to :article, null: false, foreign_key: true
|
7
|
+
t.belongs_to :tag, null: false, foreign_key: true
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
data/sample/db/schema.rb
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# This file is auto-generated from the current state of the database. Instead
|
4
|
+
# of editing this file, please use the migrations feature of Active Record to
|
5
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
6
|
+
#
|
7
|
+
# This file is the source Rails uses to define your schema when running `bin/rails
|
8
|
+
# db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
|
9
|
+
# be faster and is potentially less error prone than running all of your
|
10
|
+
# migrations from scratch. Old migrations may fail to apply correctly if those
|
11
|
+
# migrations use external dependencies or application code.
|
12
|
+
#
|
13
|
+
# It's strongly recommended that you check this file into your version control system.
|
14
|
+
|
15
|
+
ActiveRecord::Schema[7.1].define(version: 20_240_711_162_033) do
|
16
|
+
create_table "article_tags", primary_key: %w[article_id tag_id], force: :cascade do |t|
|
17
|
+
t.integer "article_id", null: false
|
18
|
+
t.integer "tag_id", null: false
|
19
|
+
t.datetime "created_at", null: false
|
20
|
+
t.datetime "updated_at", null: false
|
21
|
+
t.index ["article_id"], name: "index_article_tags_on_article_id"
|
22
|
+
t.index ["tag_id"], name: "index_article_tags_on_tag_id"
|
23
|
+
end
|
24
|
+
|
25
|
+
create_table "articles", force: :cascade do |t|
|
26
|
+
t.string "title"
|
27
|
+
t.integer "category_id", null: false
|
28
|
+
t.text "body"
|
29
|
+
t.datetime "created_at", null: false
|
30
|
+
t.datetime "updated_at", null: false
|
31
|
+
t.index ["category_id"], name: "index_articles_on_category_id"
|
32
|
+
end
|
33
|
+
|
34
|
+
create_table "categories", force: :cascade do |t|
|
35
|
+
t.string "name"
|
36
|
+
t.datetime "created_at", null: false
|
37
|
+
t.datetime "updated_at", null: false
|
38
|
+
end
|
39
|
+
|
40
|
+
create_table "tags", force: :cascade do |t|
|
41
|
+
t.string "name"
|
42
|
+
t.datetime "created_at", null: false
|
43
|
+
t.datetime "updated_at", null: false
|
44
|
+
end
|
45
|
+
|
46
|
+
add_foreign_key "article_tags", "articles"
|
47
|
+
add_foreign_key "article_tags", "tags"
|
48
|
+
add_foreign_key "articles", "categories"
|
49
|
+
end
|
data/sample/db/seeds.rb
ADDED
@@ -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>
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
1025c1c62f7b69ecfc70e3fbff3bb9c4ab7c791f892fe558e070b9d58aedfe8cf824bc808d264ea1da1dd5c771b8db48ff38933a2c63561286b9c85e275e1039
|