# Problem with routes after upgrading to Rails 2.2.2

**URL:** <https://www.ruby-forum.com/t/problem-with-routes-after-upgrading-to-rails-2-2-2/196868>\
**Category:** Rails\
**Created:** [December 30, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/problem-with-routes-after-upgrading-to-rails-2-2-2/196868 "2008-12-30T13:35:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANSS](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d78d45/32.png) [@ANSS](https://www.ruby-forum.com/u/ANSS)\
**Post date:** [December 30, 2008, 1:35pm UTC](https://www.ruby-forum.com/t/problem-with-routes-after-upgrading-to-rails-2-2-2/196868/1 "2008-12-30T13:35:24Z")

</div>

Hello,  
After I’ve upgraded my application to Rails 2.2.2 I get a Routing  
Error:

#########################################  
ActionController::RoutingError in Home#index

Showing app/views/application/\_extjs\_mainmenu.html.erb where line #19  
raised:

currencies\_purchases\_url failed to generate from  
{:controller=\>“currencies\_purchases”, :action=\>“index”} - you may have  
ambiguous routes, or you may need to supply additional parameters for  
this route. content\_url has the following required parameters:  
[“currencies\_purchases”, :format] - are they all satisfied?

Extracted source (around line #19):

16: new Ext.menu.Item({  
17: iconCls: ‘x-menu-item-icon x-cols-icon’,  
18: text: ‘Currencies Purchases’,  
19: href:’\<%= currencies\_purchases\_path %\>’  
20: }),  
21: new Ext.menu.Item({  
22: iconCls: ‘x-menu-item-icon x-cols-icon’,  
###############################################

Here is what I have in routes.rb:

###############################################  
map.currencies\_purchases ‘currencies\_purchases.:format’ ,  
:controller =\> ‘currencies\_purchases’ ,  
:action =\> ‘index’ ,  
:conditions =\> { :method =\> :post },  
:requirements =\> { :format =\> /csv|json/ }  
###############################################
