# Rails3 routes.rb DSL deprecation warning

**URL:** <https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661>\
**Category:** Rails\
**Created:** [September 8, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661 "2010-09-08T17:33:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [September 8, 2010, 5:33pm UTC](https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661/1 "2010-09-08T17:33:06Z")

</div>

During testing with Rails3 I am seeing this 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/](http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/).  
(called from  
/home/byrnejb/Software/Development/Projects/proforma.git/config/environment.rb:5)

However, the contents of config/routes.rb are:

ProformaGit::Application.routes.draw do  
resource :account  
end

What is causing this deprecation warning? How do I get rid of it other  
than by turning the warnings off?

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [September 9, 2010, 6:18pm UTC](https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661/2 "2010-09-09T18:18:06Z")

</div>

James B. wrote:

> During testing with Rails3 I am seeing this 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/](http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/).  
> (called from  
> /home/byrnejb/Software/Development/Projects/proforma.git/config/environment.rb:5)
> 
> However, the contents of config/routes.rb are:
> 
> ProformaGit::Application.routes.draw do  
> resource :account  
> end
> 
> What is causing this deprecation warning? How do I get rid of it other  
> than by turning the warnings off?

Does anyone have the answer to this and would care to enlighten me? Is  
this a bug?

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [September 9, 2010, 7:05pm UTC](https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661/3 "2010-09-09T19:05:46Z")

</div>

gem cleanup i think you have an old version of a dependency

---

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [September 11, 2010, 1:41am UTC](https://www.ruby-forum.com/t/rails3-routes-rb-dsl-deprecation-warning/194661/4 "2010-09-11T01:41:45Z")

</div>

radhames brito wrote:

> gem cleanup i think you have an old version of a dependency

I think that you were right.

Thank you.
