If you are the application owner check the logs for more information.
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/config/environments/development.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # In the development environment your application's code is reloaded on
5 | # every request. This slows down response time but is perfect for development
6 | # since you don't have to restart the web server when you make code changes.
7 | config.cache_classes = false
8 |
9 | # Do not eager load code on boot.
10 | config.eager_load = false
11 |
12 | # Show full error reports and disable caching.
13 | config.consider_all_requests_local = true
14 | config.action_controller.perform_caching = false
15 |
16 | # Don't care if the mailer can't send.
17 | config.action_mailer.raise_delivery_errors = false
18 |
19 | # Print deprecation notices to the Rails logger.
20 | config.active_support.deprecation = :log
21 |
22 | # Raise an error on page load if there are pending migrations.
23 | config.active_record.migration_error = :page_load
24 |
25 | # Debug mode disables concatenation and preprocessing of assets.
26 | # This option may cause significant delays in view rendering with a large
27 | # number of complex assets.
28 | config.assets.debug = true
29 |
30 | # Asset digests allow you to set far-future HTTP expiration dates on all assets,
31 | # yet still be able to expire them through the digest params.
32 | config.assets.digest = true
33 |
34 | # Adds additional error checking when serving assets at runtime.
35 | # Checks for improperly declared sprockets dependencies.
36 | # Raises helpful error messages.
37 | config.assets.raise_runtime_errors = true
38 |
39 | # Raises error for missing translations
40 | # config.action_view.raise_on_missing_translations = true
41 | end
42 |
--------------------------------------------------------------------------------
/config/routes.rb:
--------------------------------------------------------------------------------
1 | Rails.application.routes.draw do
2 | # The priority is based upon order of creation: first created -> highest priority.
3 | # See how all your routes lay out with "rake routes".
4 |
5 | # You can have the root of your site routed with "root"
6 | root 'welcome#index'
7 |
8 | # Example of regular route:
9 | # get 'products/:id' => 'catalog#view'
10 |
11 | # Example of named route that can be invoked with purchase_url(id: product.id)
12 | # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase
13 |
14 | # Example resource route (maps HTTP verbs to controller actions automatically):
15 | # resources :products
16 |
17 | # Example resource route with options:
18 | # resources :products do
19 | # member do
20 | # get 'short'
21 | # post 'toggle'
22 | # end
23 | #
24 | # collection do
25 | # get 'sold'
26 | # end
27 | # end
28 |
29 | # Example resource route with sub-resources:
30 | # resources :products do
31 | # resources :comments, :sales
32 | # resource :seller
33 | # end
34 |
35 | # Example resource route with more complex sub-resources:
36 | # resources :products do
37 | # resources :comments
38 | # resources :sales do
39 | # get 'recent', on: :collection
40 | # end
41 | # end
42 |
43 | # Example resource route with concerns:
44 | # concern :toggleable do
45 | # post 'toggle'
46 | # end
47 | # resources :posts, concerns: :toggleable
48 | # resources :photos, concerns: :toggleable
49 |
50 | # Example resource route within a namespace:
51 | # namespace :admin do
52 | # # Directs /admin/products/* to Admin::ProductsController
53 | # # (app/controllers/admin/products_controller.rb)
54 | # resources :products
55 | # end
56 | end
57 |
--------------------------------------------------------------------------------
/public/422.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The change you wanted was rejected (422)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
The change you wanted was rejected.
62 |
Maybe you tried to change something you didn't have access to.
63 |
64 |
If you are the application owner check the logs for more information.
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/public/404.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | The page you were looking for doesn't exist (404)
5 |
6 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
The page you were looking for doesn't exist.
62 |
You may have mistyped the address or the page may have moved.
63 |
64 |
If you are the application owner check the logs for more information.
65 |
66 |
67 |
68 |
--------------------------------------------------------------------------------
/config/environments/test.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # The test environment is used exclusively to run your application's
5 | # test suite. You never need to work with it otherwise. Remember that
6 | # your test database is "scratch space" for the test suite and is wiped
7 | # and recreated between test runs. Don't rely on the data there!
8 | config.cache_classes = true
9 |
10 | # Do not eager load code on boot. This avoids loading your whole application
11 | # just for the purpose of running a single test. If you are using a tool that
12 | # preloads Rails for running tests, you may have to set it to true.
13 | config.eager_load = false
14 |
15 | # Configure static file server for tests with Cache-Control for performance.
16 | config.serve_static_files = true
17 | config.static_cache_control = 'public, max-age=3600'
18 |
19 | # Show full error reports and disable caching.
20 | config.consider_all_requests_local = true
21 | config.action_controller.perform_caching = false
22 |
23 | # Raise exceptions instead of rendering exception templates.
24 | config.action_dispatch.show_exceptions = false
25 |
26 | # Disable request forgery protection in test environment.
27 | config.action_controller.allow_forgery_protection = false
28 |
29 | # Tell Action Mailer not to deliver emails to the real world.
30 | # The :test delivery method accumulates sent emails in the
31 | # ActionMailer::Base.deliveries array.
32 | config.action_mailer.delivery_method = :test
33 |
34 | # Randomize the order test cases are executed.
35 | config.active_support.test_order = :random
36 |
37 | # Print deprecation notices to the stderr.
38 | config.active_support.deprecation = :stderr
39 |
40 | # Raises error for missing translations
41 | # config.action_view.raise_on_missing_translations = true
42 | end
43 |
--------------------------------------------------------------------------------
/config/environments/production.rb:
--------------------------------------------------------------------------------
1 | Rails.application.configure do
2 | # Settings specified here will take precedence over those in config/application.rb.
3 |
4 | # Code is not reloaded between requests.
5 | config.cache_classes = true
6 |
7 | # Eager load code on boot. This eager loads most of Rails and
8 | # your application in memory, allowing both threaded web servers
9 | # and those relying on copy on write to perform better.
10 | # Rake tasks automatically ignore this option for performance.
11 | config.eager_load = true
12 |
13 | # Full error reports are disabled and caching is turned on.
14 | config.consider_all_requests_local = false
15 | config.action_controller.perform_caching = true
16 |
17 | # Enable Rack::Cache to put a simple HTTP cache in front of your application
18 | # Add `rack-cache` to your Gemfile before enabling this.
19 | # For large-scale production use, consider using a caching reverse proxy like
20 | # NGINX, varnish or squid.
21 | # config.action_dispatch.rack_cache = true
22 |
23 | # Disable serving static files from the `/public` folder by default since
24 | # Apache or NGINX already handles this.
25 | config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
26 |
27 | # Compress JavaScripts and CSS.
28 | config.assets.js_compressor = :uglifier
29 | # config.assets.css_compressor = :sass
30 |
31 | # Do not fallback to assets pipeline if a precompiled asset is missed.
32 | config.assets.compile = false
33 |
34 | # Asset digests allow you to set far-future HTTP expiration dates on all assets,
35 | # yet still be able to expire them through the digest params.
36 | config.assets.digest = true
37 |
38 | # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
39 |
40 | # Specifies the header that your server uses for sending files.
41 | # config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
42 | # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
43 |
44 | # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
45 | # config.force_ssl = true
46 |
47 | # Use the lowest log level to ensure availability of diagnostic information
48 | # when problems arise.
49 | config.log_level = :debug
50 |
51 | # Prepend all log lines with the following tags.
52 | # config.log_tags = [ :subdomain, :uuid ]
53 |
54 | # Use a different logger for distributed setups.
55 | # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
56 |
57 | # Use a different cache store in production.
58 | # config.cache_store = :mem_cache_store
59 |
60 | # Enable serving of images, stylesheets, and JavaScripts from an asset server.
61 | # config.action_controller.asset_host = 'http://assets.example.com'
62 |
63 | # Ignore bad email addresses and do not raise email delivery errors.
64 | # Set this to true and configure the email server for immediate delivery to raise delivery errors.
65 | # config.action_mailer.raise_delivery_errors = false
66 |
67 | # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
68 | # the I18n.default_locale when a translation cannot be found).
69 | config.i18n.fallbacks = true
70 |
71 | # Send deprecation notices to registered listeners.
72 | config.active_support.deprecation = :notify
73 |
74 | # Use default logging formatter so that PID and timestamp are not suppressed.
75 | config.log_formatter = ::Logger::Formatter.new
76 |
77 | # Do not dump schema after migrations.
78 | config.active_record.dump_schema_after_migration = false
79 | end
80 |
--------------------------------------------------------------------------------
/Gemfile.lock:
--------------------------------------------------------------------------------
1 | GEM
2 | remote: https://rubygems.org/
3 | specs:
4 | actionmailer (4.2.1)
5 | actionpack (= 4.2.1)
6 | actionview (= 4.2.1)
7 | activejob (= 4.2.1)
8 | mail (~> 2.5, >= 2.5.4)
9 | rails-dom-testing (~> 1.0, >= 1.0.5)
10 | actionpack (4.2.1)
11 | actionview (= 4.2.1)
12 | activesupport (= 4.2.1)
13 | rack (~> 1.6)
14 | rack-test (~> 0.6.2)
15 | rails-dom-testing (~> 1.0, >= 1.0.5)
16 | rails-html-sanitizer (~> 1.0, >= 1.0.1)
17 | actionview (4.2.1)
18 | activesupport (= 4.2.1)
19 | builder (~> 3.1)
20 | erubis (~> 2.7.0)
21 | rails-dom-testing (~> 1.0, >= 1.0.5)
22 | rails-html-sanitizer (~> 1.0, >= 1.0.1)
23 | activejob (4.2.1)
24 | activesupport (= 4.2.1)
25 | globalid (>= 0.3.0)
26 | activemodel (4.2.1)
27 | activesupport (= 4.2.1)
28 | builder (~> 3.1)
29 | activerecord (4.2.1)
30 | activemodel (= 4.2.1)
31 | activesupport (= 4.2.1)
32 | arel (~> 6.0)
33 | activesupport (4.2.1)
34 | i18n (~> 0.7)
35 | json (~> 1.7, >= 1.7.7)
36 | minitest (~> 5.1)
37 | thread_safe (~> 0.3, >= 0.3.4)
38 | tzinfo (~> 1.1)
39 | arel (6.0.0)
40 | autoprefixer-rails (5.2.0)
41 | execjs
42 | json
43 | binding_of_caller (0.7.2)
44 | debug_inspector (>= 0.0.1)
45 | bootstrap-datepicker-rails (1.4.0)
46 | railties (>= 3.0)
47 | bootstrap-sass (3.3.4.1)
48 | autoprefixer-rails (>= 5.0.0.1)
49 | sass (>= 3.2.19)
50 | builder (3.2.2)
51 | byebug (5.0.0)
52 | columnize (= 0.9.0)
53 | columnize (0.9.0)
54 | debug_inspector (0.0.2)
55 | dotenv (2.0.1)
56 | dotenv-rails (2.0.1)
57 | dotenv (= 2.0.1)
58 | erubis (2.7.0)
59 | execjs (2.5.2)
60 | font-awesome-rails (4.3.0.0)
61 | railties (>= 3.2, < 5.0)
62 | globalid (0.3.5)
63 | activesupport (>= 4.1.0)
64 | i18n (0.7.0)
65 | jbuilder (2.2.16)
66 | activesupport (>= 3.0.0, < 5)
67 | multi_json (~> 1.2)
68 | jquery-rails (4.0.3)
69 | rails-dom-testing (~> 1.0)
70 | railties (>= 4.2.0)
71 | thor (>= 0.14, < 2.0)
72 | jquery-ui-rails (5.0.5)
73 | railties (>= 3.2.16)
74 | jquery-validation-rails (1.13.1)
75 | railties (>= 3.2, < 5.0)
76 | thor (~> 0.14)
77 | json (1.8.3)
78 | loofah (2.0.2)
79 | nokogiri (>= 1.5.9)
80 | mail (2.6.3)
81 | mime-types (>= 1.16, < 3)
82 | mail_form (1.5.1)
83 | actionmailer (>= 3.2, < 5)
84 | activemodel (>= 3.2, < 5)
85 | method_source (0.8.2)
86 | mime-types (2.6.1)
87 | mini_portile (0.6.2)
88 | minitest (5.7.0)
89 | multi_json (1.11.1)
90 | nokogiri (1.6.6.2)
91 | mini_portile (~> 0.6.0)
92 | pg (0.18.2)
93 | rack (1.6.1)
94 | rack-test (0.6.3)
95 | rack (>= 1.0)
96 | rails (4.2.1)
97 | actionmailer (= 4.2.1)
98 | actionpack (= 4.2.1)
99 | actionview (= 4.2.1)
100 | activejob (= 4.2.1)
101 | activemodel (= 4.2.1)
102 | activerecord (= 4.2.1)
103 | activesupport (= 4.2.1)
104 | bundler (>= 1.3.0, < 2.0)
105 | railties (= 4.2.1)
106 | sprockets-rails
107 | rails-deprecated_sanitizer (1.0.3)
108 | activesupport (>= 4.2.0.alpha)
109 | rails-dom-testing (1.0.6)
110 | activesupport (>= 4.2.0.beta, < 5.0)
111 | nokogiri (~> 1.6.0)
112 | rails-deprecated_sanitizer (>= 1.0.1)
113 | rails-html-sanitizer (1.0.2)
114 | loofah (~> 2.0)
115 | railties (4.2.1)
116 | actionpack (= 4.2.1)
117 | activesupport (= 4.2.1)
118 | rake (>= 0.8.7)
119 | thor (>= 0.18.1, < 2.0)
120 | rake (10.4.2)
121 | rdoc (4.2.0)
122 | sass (3.4.14)
123 | sass-rails (5.0.3)
124 | railties (>= 4.0.0, < 5.0)
125 | sass (~> 3.1)
126 | sprockets (>= 2.8, < 4.0)
127 | sprockets-rails (>= 2.0, < 4.0)
128 | tilt (~> 1.1)
129 | sdoc (0.4.1)
130 | json (~> 1.7, >= 1.7.7)
131 | rdoc (~> 4.0)
132 | sprockets (3.2.0)
133 | rack (~> 1.0)
134 | sprockets-rails (2.3.1)
135 | actionpack (>= 3.0)
136 | activesupport (>= 3.0)
137 | sprockets (>= 2.8, < 4.0)
138 | thor (0.19.1)
139 | thread_safe (0.3.5)
140 | tilt (1.4.1)
141 | tzinfo (1.2.2)
142 | thread_safe (~> 0.1)
143 | uglifier (2.7.1)
144 | execjs (>= 0.3.0)
145 | json (>= 1.8.0)
146 | web-console (2.1.2)
147 | activemodel (>= 4.0)
148 | binding_of_caller (>= 0.7.2)
149 | railties (>= 4.0)
150 | sprockets-rails (>= 2.0, < 4.0)
151 | zeus (0.15.4)
152 | method_source (>= 0.6.7)
153 |
154 | PLATFORMS
155 | ruby
156 |
157 | DEPENDENCIES
158 | bootstrap-datepicker-rails
159 | bootstrap-sass
160 | byebug
161 | dotenv-rails
162 | font-awesome-rails
163 | jbuilder
164 | jquery-rails
165 | jquery-ui-rails
166 | jquery-validation-rails
167 | mail_form
168 | pg
169 | rails (= 4.2.1)
170 | sass-rails
171 | sdoc
172 | uglifier
173 | web-console (~> 2.0)
174 | zeus
175 |
--------------------------------------------------------------------------------