I tried setting the default_url_options in my config/environments.rb 
like this:

  config.action_controller.default_url_options = { :host => 
'example.com'}


but I get this error when i restart my server I get this error, is there 
another way to accomplish this taks?



/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in 
`send': undefined method `default_url_options=' for 
ActionController::Base:Class (NoMethodError)
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:530:in 
`initialize_framework_settings'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in 
`each'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:529:in 
`initialize_framework_settings'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in 
`each'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:526:in 
`initialize_framework_settings'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:154:in 
`process'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in 
`send'
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:112:in 
`run'
   ... 27 levels...
  from 
/opt/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/commands/server.rb:49
  from 
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
  from 
/opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`require'
  from script/server:3


Ruby 1.8.6
Rails 2.2.2




-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to