diff --git a/webview/README.md b/webview/README.md index 7db80e4..8ca8465 100644 --- a/webview/README.md +++ b/webview/README.md @@ -1,24 +1,6 @@ -# README +# Ruby on Rails Help: -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... +### Generate a Controller +`rails generate controller []` +Undo with: +`rails destroy controller ` diff --git a/webview/config/environments/development.rb b/webview/config/environments/development.rb index 2e7fb48..b40633f 100644 --- a/webview/config/environments/development.rb +++ b/webview/config/environments/development.rb @@ -25,7 +25,7 @@ config.cache_store = :memory_store config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{2.days.to_i}" + "Cache-Control" => "public, max-age=#{2.days.to_i}", } else config.action_controller.perform_caching = false diff --git a/webview/config/environments/production.rb b/webview/config/environments/production.rb index eca3fc4..3795c20 100644 --- a/webview/config/environments/production.rb +++ b/webview/config/environments/production.rb @@ -53,11 +53,11 @@ # Log to STDOUT by default config.logger = ActiveSupport::Logger.new(STDOUT) - .tap { |logger| logger.formatter = ::Logger::Formatter.new } + .tap { |logger| logger.formatter = ::Logger::Formatter.new } .then { |logger| ActiveSupport::TaggedLogging.new(logger) } # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] + config.log_tags = [:request_id] # Info include generic and useful information about system operation, but avoids logging too much # information to avoid inadvertent exposure of personally identifiable information (PII). If you diff --git a/webview/config/environments/test.rb b/webview/config/environments/test.rb index adbb4a6..64be917 100644 --- a/webview/config/environments/test.rb +++ b/webview/config/environments/test.rb @@ -20,7 +20,7 @@ # Configure public file server for tests with Cache-Control for performance. config.public_file_server.enabled = true config.public_file_server.headers = { - "Cache-Control" => "public, max-age=#{1.hour.to_i}" + "Cache-Control" => "public, max-age=#{1.hour.to_i}", } # Show full error reports and disable caching. diff --git a/webview/config/initializers/filter_parameter_logging.rb b/webview/config/initializers/filter_parameter_logging.rb index c2d89e2..8fd698f 100644 --- a/webview/config/initializers/filter_parameter_logging.rb +++ b/webview/config/initializers/filter_parameter_logging.rb @@ -4,5 +4,5 @@ # Use this to limit dissemination of sensitive information. # See the ActiveSupport::ParameterFilter documentation for supported notations and behaviors. Rails.application.config.filter_parameters += [ - :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn + :passw, :secret, :token, :_key, :crypt, :salt, :certificate, :otp, :ssn, ] diff --git a/webview/config/routes.rb b/webview/config/routes.rb index a125ef0..23f98ce 100644 --- a/webview/config/routes.rb +++ b/webview/config/routes.rb @@ -1,4 +1,5 @@ Rails.application.routes.draw do + get "files/ls", to: "files#ls" # Define your application routes per the DSL in https://guides.rubyonrails.org/routing.html # Reveal health status on /up that returns 200 if the app boots with no exceptions, otherwise 500.