Results 1 to 1 of 1
Dec 26, 2010, 01:16 #1
- Join Date
- Jun 2007
- 0 Post(s)
- 0 Thread(s)
Help! Rails Routing Problems (2x upgrade to 3x)
Hi, I'm very new, so please go easy and explain my errors
I'm trying to upgrade my routes.db file "as I am using the old router DSL which will be removed in Rails 3.1" (quoted from deprecation warning).
Now here's the problem I'm having:
Shovell::Application.routes.draw do |map| map.resources :stories, :has_many => :votes map.connect ':controller/:action/:id' map.connect ':controller/:action/:id.:format' get "stories/index" end
--SPECIFICALLY with converting the lineCode Ruby:
I read that it should be as simple as replacing map.connect to match and removing |map| from the .draw do?
However, when I do it seems to not work anymore as it should.. several of my routes (specifically the :has_many => :votes ones) are no longer present when I perform rake routes.
Please let me know if you need more details