diff --git a/app/views/home/index.html.erb b/app/views/home/index.html.erb index 67346b4..a481e37 100644 --- a/app/views/home/index.html.erb +++ b/app/views/home/index.html.erb @@ -35,9 +35,12 @@ - -<%= render partial: 'layouts/message_confirmation' %> - -<%# <%= link_to "Contact Form", new_contact_path %1> %> -<%= render partial: "contacts/contact_form" %> +
+
+ + <%= render partial: 'layouts/message_confirmation' %> + + <%= render partial: "contacts/contact_form" %> +
+
diff --git a/config/environments/production.rb b/config/environments/production.rb index e1425b5..0327ca8 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -1,4 +1,4 @@ -require "active_support/core_ext/integer/time" +require 'active_support/core_ext/integer/time' Rails.application.configure do # Settings specified here will take precedence over those in config/application.rb. @@ -22,7 +22,7 @@ Rails.application.configure do # Disable serving static files from the `/public` folder by default since # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present? + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? # Compress CSS using a preprocessor. # config.assets.css_compressor = :sass @@ -53,7 +53,7 @@ Rails.application.configure do config.log_level = :info # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] + config.log_tags = [:request_id] # Use a different cache store in production. # config.cache_store = :mem_cache_store @@ -82,7 +82,7 @@ Rails.application.configure do # require "syslog/logger" # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name") - if ENV["RAILS_LOG_TO_STDOUT"].present? + if ENV['RAILS_LOG_TO_STDOUT'].present? logger = ActiveSupport::Logger.new(STDOUT) logger.formatter = config.log_formatter config.logger = ActiveSupport::TaggedLogging.new(logger) @@ -92,12 +92,12 @@ Rails.application.configure do config.active_record.dump_schema_after_migration = false ActionMailer::Base.smtp_settings = { - :port => ENV['MAILGUN_SMTP_PORT'], - :address => ENV['MAILGUN_SMTP_SERVER'], - :user_name => ENV['MAILGUN_SMTP_LOGIN'], - :password => ENV['MAILGUN_SMTP_PASSWORD'], - :domain => 'edcommonwealth.org', # UPDATE THIS VALUE WITH YOUR OWN APP - :authentication => :plain, -} -ActionMailer::Base.delivery_method = :smtp + port: ENV['MAILGUN_SMTP_PORT'], + address: ENV['MAILGUN_SMTP_SERVER'], + user_name: ENV['MAILGUN_SMTP_LOGIN'], + password: ENV['MAILGUN_SMTP_PASSWORD'], + domain: 'edcommonwealth.org', # UPDATE THIS VALUE WITH YOUR OWN APP sandbox40fae401f9cc472c927c7ed271d736f7.mailgun.org + authentication: :plain + } + ActionMailer::Base.delivery_method = :smtp end