Hi, I''m trying to bring an "old" rails app up to 2.1. I''m getting this error when trying to access the app via an iFrame setup we had working before for showing widgets on other domains pages: ActionController::RoutingError (No route matches "/topics;summary" with {:method=>:get}): /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/routing/recognition_optimisation.rb:67:in `recognize_path'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/routing/route_set.rb:385:in `recognize'' /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:148:in `handle_request'' yadda yadda... My routes.rb has this: map.resources :topics, { :member => { :rank_item => :put, :rank_items => :put, :widgets => :get }, :collection => { :summary => :get }, :new => { :copy => :post, :link => :post } } and my topics controller has a "summary" method. Any ideas what has changed that makes this no longer valid? The other developer on the job set this part up, and I never quite understood it. Seems to be a pre-cursor to the "modern" REST way of doing things, but seems only to complicate something that would otherwise be simple. Anyway, enough bitching from me. Anyone know what''s wrong here? many thanks, jp -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jeff Pritchard wrote:> Hi, > I''m trying to bring an "old" rails app up to 2.1. > > > many thanks, > jpShameless bump. Apparently everyone was out partying last night and didn''t see my plea for assistance... thanks, jp -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
jp, On Tue, Dec 30, 2008 at 8:58 PM, Jeff Pritchard <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, > I''m trying to bring an "old" rails app up to 2.1. > > I''m getting this error when trying to access the app via an iFrame setup > we had working before for showing widgets on other domains pages: > ActionController::RoutingError (No route matches "/topics;summary" with > {:method=>:get}): > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/routing/recognition_optimisation.rb:67:in > `recognize_path'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/routing/route_set.rb:385:in > `recognize'' > /usr/local/lib/ruby/gems/1.8/gems/actionpack-2.1.2/lib/action_controller/dispatcher.rb:148:in > `handle_request'' > yadda yadda... > > > My routes.rb has this: > map.resources :topics, > { :member => { :rank_item => :put, > :rank_items => :put, > :widgets => :get }, > :collection => { :summary => :get }, > :new => { :copy => :post, > :link => :post } } > > > and my topics controller has a "summary" method. > > Any ideas what has changed that makes this no longer valid? The other > developer on the job set this part up, and I never quite understood it. > Seems to be a pre-cursor to the "modern" REST way of doing things, but > seems only to complicate something that would otherwise be simple. > > Anyway, enough bitching from me. Anyone know what''s wrong here?Rails 1.x used a semi-colon instead of just a slash to specify the action, so instead of "/topics;summary", the route will generate "topics/summary". I''m guessing whatever is calling the iframe has the url with the semi-colon hard-coded. Brandon -- -------------------------------------------------------------------------------- Training by Collective Idea: Ruby on Rails training in a vacation setting http://training.collectiveidea.com – San Antonio, TX – Jan 20-23 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Brandon Keepers wrote:> Rails 1.x used a semi-colon instead of just a slash to specify the > action, so instead of "/topics;summary", the route will generate > "topics/summary". I''m guessing whatever is calling the iframe has the > url with the semi-colon hard-coded. > > Brandon > > -- > -------------------------------------------------------------------------------- > Training by Collective Idea: Ruby on Rails training in a vacation > setting > http://training.collectiveidea.com � San Antonio, TX � Jan 20-23GENIUS! Thanks Brandon, that was the whole problem. Everything is working great now! cheers, jp -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---