I have found the solution.
The config.middleware.use should be put into application.rb, and the /
lib is no longer loaded automatically so you need to load it, like
this:

  class Application < Rails::Application
    config.autoload_paths += %W(#{Rails.root}/lib)
    config.middleware.use "NoWWW"
    ...

Hope this helps someone.

-- 
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