Ruby DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1.
Posted
by
user297221
on Stack Overflow
See other posts from Stack Overflow
or by user297221
Published on 2011-01-02T14:31:16Z
Indexed on
2011/01/04
8:53 UTC
Read the original article
Hit count: 502
Hi guys. I am using rails 3 and at the moment i am writing tests for my application. I get this weird deprecation warning:
DEPRECATION WARNING: You are using the old router DSL which will be removed in Rails 3.1. Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/. (called from at /Users/jeljer/Dropbox/webCMS/config/environment.rb:6)
Of course my routes file is this:
WebCMS::Application.routes.draw do
but no luck. If I look at the place what it is pointing to in my enviroment.rb: WebCMS::Application.initialize!
#...
end
I did a gem cleanup without any luck. Does anybody have an idea?
ps. i am using rvm with ruby 1.9.2
© Stack Overflow or respective owner