Problem with routes after upgrading to Rails 2.2.2


#1

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/ }
###############################################