In Rails2 I used a middleware to redirect www.mydomain.tld to
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
When it failed l put it in application,rb, the first line after class
Application < Rails::Application in application.rb is:
But when I try to run the app I get: C:/Ruby/lib/ruby/gems/1.9.1/gems/
`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.