Rails - undefined method `cattr_accessor' for Log4r:Module - ruby-on-rails

I am trying to connect the Log4r with the silence logger from active support with
Log4r.send :include,
ActiveRecord::SessionStore::Extension::LoggerSilencer
But now I get this error if I try to start the server :
I tried it with
require 'active_support/all'
in my session_store.rb and log4r.rb, but always get the same error. Anyone with an idea how to fix this ?
C:/Ruby200/lib/ruby/gems/2.0.0/gems/activerecord-session_store-1.0.0/lib/active_record/session_store/extension/logger_silencer.rb:16:in `block in <module:LoggerSilencer>': undefined method `cattr_accessor' for Log4r:Module (NoMethodError)
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/concern.rb:114:in `class_eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/concern.rb:114:in `append_features'
from C:/SVN/FOS/branches/FOS_5_0/config/initializers/session_store.rb:4:in `include'
from C:/SVN/FOS/branches/FOS_5_0/config/initializers/session_store.rb:4:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `block in load'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/engine.rb:608:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/engine.rb:608:in `block in <class:Engine>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `instance_exec'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:30:in `run'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:55:in `block in run_initializers'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:44:in `each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:44:in `tsort_each_child'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:180:in `each'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from C:/Ruby200/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/initializable.rb:54:in `run_initializers'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/application.rb:215:in `initialize!'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
from C:/SVN/FOS/branches/FOS_5_0/config/environment.rb:7:in `<top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require'
from C:/SVN/FOS/branches/FOS_5_0/config.ru:3:in `block in <main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
from C:/SVN/FOS/branches/FOS_5_0/config.ru:in `new'
from C:/SVN/FOS/branches/FOS_5_0/config.ru:in `<main>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/commands/server.rb:48:in `app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/commands/server.rb:75:in `start'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/commands.rb:76:in `block in <top (required)>'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/commands.rb:71:in `tap'
from C:/Ruby200/lib/ruby/gems/2.0.0/gems/railties-4.0.13/lib/rails/commands.rb:71:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'

cattr_accessor should be attr_accessor in the logger_silencer.rb file on line 16. Im pretty sure thats it, let use know if it's not.

Solution:
I update my Log4r because the old version I use was not compatible with the new rails. Now it works.

Related

Elastic Beanstalk Rails deploy mystery initialize error

I am trying to deploy an existing heroku app to EC2 using Beanstalk.
So far I have all the Environment variables moved over and the database setup.. etc. It seems to work and deploy correct except for Puma.
The puma.log file has the following in it over and over;
/opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `initialize': no implicit conversion of nil into String (TypeError)
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `new'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/pathname.rb:397:in `join'
from /var/app/current/config/initializers/cloudfront-signer.rb:2:in `block in <top (required)>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/cloudfront-signer-2.2.0/lib/cloudfront-signer.rb:108:in `configure'
from /var/app/current/config/initializers/cloudfront-signer.rb:1:in `<top (required)>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `block in load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in `load_dependency'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:268:in `load'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:652:in `block in load_config_initializer'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/activesupport-4.2.1/lib/active_support/notifications.rb:166:in `instrument'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:651:in `load_config_initializer'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:616:in `block (2 levels) in <class:Engine>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/engine.rb:615:in `block in <class:Engine>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `instance_exec'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:30:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:55:in `block in run_initializers'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:420:in `block (2 levels) in each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:419:in `block in each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:44:in `tsort_each_child'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `call'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:413:in `each_strongly_connected_component_from'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/initializable.rb:54:in `run_initializers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/railties-4.2.1/lib/rails/application.rb:352:in `initialize!'
from /var/app/current/config/environment.rb:5:in `<top (required)>'
from config.ru:3:in `require'
from config.ru:3:in `block in <main>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize'
from config.ru:in `new'
from config.ru:in `<main>'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `eval'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:49:in `new_from_string'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/rack-1.6.4/lib/rack/builder.rb:40:in `parse_file'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/configuration.rb:102:in `load_rackup'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/configuration.rb:69:in `app'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/runner.rb:123:in `app'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/runner.rb:130:in `start_server'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:213:in `worker'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `block (2 levels) in spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `fork'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:109:in `block in spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:105:in `times'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:105:in `spawn_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:157:in `check_workers'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cluster.rb:421:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/lib/puma/cli.rb:216:in `run'
from /opt/rubies/ruby-2.2.2/lib/ruby/gems/2.2.0/gems/puma-2.11.2/bin/puma:10:in `<top (required)>'
from /opt/rubies/ruby-2.2.2/bin/puma:23:in `load'
from /opt/rubies/ruby-2.2.2/bin/puma:23:in `<main>'
I have no clue what this is or why its happening and am at a complete loss..
Line 5 of config/environment is Rails.application.initialize!
Line 3 of config.ru is run Rails.application
So does this mean that Rails.application hasn't been defined? I'm a tad confused.
Again this app works perfectly on Heroku.
Suggestions?

bad URI(is not URI?) When running rails s in ubuntu terminal

I've been trying to run rails s on one of my project. I'm a complete beginner on RoR and was just trying to get things started by first trying to run the files and see how the website looks like. However, it seems like I'm stuck at this one problem that I can't really find a solution to. Can anyone help me?
Here is the error:
/home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:176:in `split': bad URI(is not URI?): (URI::InvalidURIError)
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:211:in `parse'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/uri/common.rb:747:in `parse'
from /home/peh/Desktop/kairos-singapore-master/config/initializers/redis.rb:1:in `<top (required)>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in <class:Engine>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /home/peh/.rvm/rubies/ruby-2.0.0-p451/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/peh/Desktop/kairos-singapore-master/config/environment.rb:5:in `<top (required)>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/peh/Desktop/kairos-singapore-master/config.ru:3:in `block in <main>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/peh/Desktop/kairos-singapore-master/config.ru:in `new'
from /home/peh/Desktop/kairos-singapore-master/config.ru:in `<main>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /home/peh/.rvm/gems/ruby-2.0.0-p451/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
You have a bad URI on /home/peh/Desktop/kairos-singapore-master/config/initializers/redis.rb:1. Ruby can't parse it.

unable to run rails server after updating to rails 4

I just now my rails app to rails 4 from rails 3. I am not able to get it to work. I have done all the necessary configuration removal and addition whereever necessary. But now I am facing this. IS the question too blunt? IF so comment on what information is needed to make it more understandable. I am a totally new to rails, please help.
/home/aravind/Documents/dev/ptl/config/initializers/simple_form.rb:8:in `block in <top (required)>': undefined method `wrappers' for SimpleForm:Module (NoMethodError)
from /usr/local/lib/ruby/gems/2.0.0/gems/simple_form-1.4.1/lib/simple_form.rb:143:in `setup'
from /home/aravind/Documents/dev/ptl/config/initializers/simple_form.rb:2:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `block in load'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:222:in `load'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:608:in `block in <class:Engine>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
from /usr/local/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:210:in `block (2 levels) in each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:209:in `block in each_strongly_connected_component_from'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
from /usr/local/lib/ruby/2.0.0/tsort.rb:203:in `each_strongly_connected_component_from'
from /usr/local/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each'
from /usr/local/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from /usr/local/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /home/aravind/Documents/dev/ptl/config/environment.rb:5:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
from /usr/local/lib/ruby/gems/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
from /home/aravind/Documents/dev/ptl/config.ru:3:in `block in <main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /home/aravind/Documents/dev/ptl/config.ru:in `new'
from /home/aravind/Documents/dev/ptl/config.ru:in `<main>'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:48:in `app'
from /usr/local/lib/ruby/gems/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands/server.rb:75:in `start'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:78:in `block in <top (required)>'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `tap'
from /usr/local/lib/ruby/gems/2.0.0/gems/railties-4.0.0/lib/rails/commands.rb:73:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
it looks like you are running simple_form 1.4.1 try upgrading it to the latest version. which should work with rails 4. if you are specifying a version in your Gemfile remove the version tag, and run bundle update
Give this a go gem 'simple_form', :git => 'git://github.com/plataformatec/simple_form.git'. I think you need a more recent version of simple_form.

print ruby on rails backstraces/stracktraces/errorss in reverse order on the screen

Here is annoyance I have with strack traces in rails -- they print the error first which means to view any error, you have scroll up in your termanl to see what the error is.
is there a way by which the error & stracktrace can be printed in reverse order, so you can view the error without having to scroll. for example:
This is rails/ruby currently prints stracktraces:
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /demo/config/environment.rb:5:in `<top (required)>'
from /demo/config.ru:3:in `require'
from /demo/config.ru:3:in `block in <main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /demo/config.ru:in `new'
from /demo/config.ru:in `<main>'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
Is there a way by which I can get this same stracktrace in reverse order, so I don't have to scroll my terminal everytime i get a error. something similar to this:
from bin/rails:4:in `<main>'
from bin/rails:4:in `require'
from /railties/lib/rails/commands.rb:75:in `<top (required)>'
from /railties/lib/rails/commands.rb:75:in `tap'
from /railties/lib/rails/commands.rb:80:in `block in <top (required)>'
from /railties/lib/rails/commands/server.rb:75:in `start'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app'
from /railties/lib/rails/commands/server.rb:48:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval'
from /demo/config.ru:in `<main>'
from /demo/config.ru:in `new'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
from /ruby-2.0.0-p0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
from /demo/config.ru:3:in `block in <main>'
from /demo/config.ru:3:in `require'
from /demo/config/environment.rb:5:in `<top (required)>'
from /railties/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /railties/lib/rails/application.rb:214:in `initialize!'
from /railties/lib/rails/initializable.rb:54:in `run_initializers'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:180:in `each'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
from ruby-2.0.0-p0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
from /railties/lib/rails/initializable.rb:55:in `block in run_initializers'
from /railties/lib/rails/initializable.rb:30:in `run'
from /railties/lib/rails/initializable.rb:30:in `instance_exec'
from /railties/lib/rails/application/finisher.rb:69:in `block in <module:Finisher>'
from /railties/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
from /railties/lib/rails/application/routes_reloader.rb:27:in `updater'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `execute'
from /activesupport/lib/active_support/file_update_checker.rb:75:in `call'
from /railties/lib/rails/application/routes_reloader.rb:26:in `block in updater'
from /railties/lib/rails/application/routes_reloader.rb:15:in `reload!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `clear!'
from /railties/lib/rails/application/routes_reloader.rb:33:in `each'
from /railties/lib/rails/application/routes_reloader.rb:35:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `each'
from /actionpack/lib/action_dispatch/routing/route_set.rb:330:in `block in clear!'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `eval_block'
from /actionpack/lib/action_dispatch/routing/route_set.rb:315:in `instance_exec'
from /ruby-2.0.0-p0/bundler/gems/sprockets-rails-bbf755e8b3aa/lib/sprockets/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
from /actionpack/lib/action_dispatch/routing/mapper.rb:502:in `mount'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1380:in `each'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1389:in `block in match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1408:in `decomposed_match'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `add_route'
from /actionpack/lib/action_dispatch/routing/mapper.rb:1429:in `new'
from /actionpack/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
from /actionpack/lib/action_dispatch/routing/mapper.rb:79:in `normalize_path!'
from /actionpack/lib/action_dispatch/routing/mapper.rb:307:in `normalize_path'
from /activesupport/lib/active_support/dependencies.rb:228:in `require'
from /activesupport/lib/active_support/dependencies.rb:213:in `load_dependency'
from /activesupport/lib/active_support/dependencies.rb:228:in `block in require'
/activesupport/lib/active_support/dependencies.rb:228:in `require': cannot load such file -- pry (LoadError)
Possible?
There are several ways to do this.
If you're in irb, or the debugger something like:
caller.reverse
Will give you what you want.
The alternative then is to wrap all your code like so
begin
all the code
rescue StandardError => e
puts e.backtrace.reverse
end
And finally you could extend backtrace on Exception to print caller.reverse but extending core modules is not a great idea at all.

ActionMailer method missing "default_url_setting"

When I run my rails app in development mode, it runs fine. When I run it in production mode, though, it crashes on launch, and I get this output from the server:
/Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/base.rb:437:in `method_missing': undefined method `default_url_setting=' for ActionMailer::Base:Class (NoMethodError)
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/railtie.rb:34:in `block (3 levels) in <class:Railtie>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/railtie.rb:34:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/railtie.rb:34:in `block (2 levels) in <class:Railtie>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:42:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/base.rb:733:in `<class:Base>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/base.rb:325:in `<module:ActionMailer>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/actionmailer-3.2.3/lib/action_mailer/base.rb:10:in `<top (required)>'
from /Users/user/Desktop/MetaRepo/MetaWebsite/app/mailers/notification_mailer.rb:1:in `<top (required)>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in `require_or_load'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:313:in `depend_on'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:225:in `require_dependency'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:438:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:438:in `block in eager_load!'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:436:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/engine.rb:436:in `eager_load!'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
from /Users/user/Desktop/MetaRepo/MetaWebsite/config/environment.rb:5:in `<top (required)>'
from /Users/user/Desktop/MetaRepo/MetaWebsite/config.ru:4:in `require'
from /Users/user/Desktop/MetaRepo/MetaWebsite/config.ru:4:in `block in <main>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
from /Users/user/Desktop/MetaRepo/MetaWebsite/config.ru:1:in `new'
from /Users/user/Desktop/MetaRepo/MetaWebsite/config.ru:1:in `<main>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from /Users/user/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Clearly it has something to do with my ActionMailer gem, but I'm completely stumped. Any help is much appreciated!
On the documentation (ctrl+F "default_url"), there is default_url_options. Perhaps you mispelled the method?
config.action_mailer.default_url_options = { :host => "example.com" }

Resources