I ran into some similar issues while upgrading some of my sites. My problems were mainly because I wasn't using standard resourceful routes. The simplest way to fix this is to just specify each route manually. If you have a lot of similar patterns with other resources you could just write a function to create each route pattern.
Here is a short example: routes.rb delete 'subscriptions', to: 'subscriptions', as: :subscriptions get 'subscriptions/edit', to: 'subscriptions#edit', as: :edit_subscriptions Rails 4 Routes : subscriptions DELETE /subscriptions(.:format) subscriptions#subscriptions edit_subscriptions GET /subscriptions/edit(.:format) subscriptions#edit On Thursday, December 26, 2013 8:15:38 AM UTC-5, Maciej Nowak wrote: > > I am migrating our application from 3.x to 4.0.2 and I have following > problem : > > https://gist.github.com/Keqi/46f8f281ddeef7107c14 > > Rails 4 generates totally different routes in this case and it brakes some > of our functionalities. Maybe I am not familiar with new way of creating > routes but in release notes there was nothing said about it. At least about > this part of routes. How can I make these routes look like in rails 3 ? > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b52d84d9-d265-4985-8fdc-b7c40fb0dc51%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

