Forum: Ruby on Rails Problem with routes after upgrading to Rails 2.2.2

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2e43441628bc256b5f076f8987218dfb?d=identicon&s=25 AN@S (Guest)
on 2008-12-30 13:35
(Received via mailing list)
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/ }
###############################################
This topic is locked and can not be replied to.