Hello,
In Rails2 I used a middleware to redirect www.mydomain.tld to
mydomain.tld.
Something like this: http://pastie.org/1118140
It is in  Libs, with filename "no_www.rb".
I tryed to add as the first line of environment.rb as suggested in
here: http://edgeguides.rubyonrails.org/rails_on_rack.html

When it failed l put it in application,rb,  the first line after class
Application < Rails::Application in application.rb is:
config.middleware.use "NoWWW"
But when I try to run the app I get: C:/Ruby/lib/ruby/gems/1.9.1/gems/
activesupport-3.0.0.rc2/lib/active_support/inflector/methods.rb:124:in
`block in constantize': uninitialized constant NoWWW (NameError)

Any idea how to use it? Unfortunately I can't use mod_rewrite, since I
plan to put the app. on Heroku.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to