[Rails] Re: Changing link_to link location slightly..

2010-05-11 Thread youtube
THANK YOU SO MUCH! On May 11, 4:54 pm, Ar Chron wrote: > map.resources :tutorials, >   :controller => "categories" >   :path_prefix => "/category/:category_id", > > There should be a comma at the end of the second line after > "categories", my bad. > -- > Posted viahttp://www.ruby-forum.com/. > >

[Rails] Re: Changing link_to link location slightly..

2010-05-11 Thread Ar Chron
map.resources :tutorials, :controller => "categories" :path_prefix => "/category/:category_id", There should be a comma at the end of the second line after "categories", my bad. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google

[Rails] Re: Changing link_to link location slightly..

2010-05-10 Thread Joe
(dont know why the last post posted, I wasn't done yet) Please note the last error was for the path:prefix line. Also on your route list thing it gives me this error (about the colon next to the path_prefix line): unexpected ',' expecting kEND (The server running also mentions then ',' but not

[Rails] Re: Changing link_to link location slightly..

2010-05-10 Thread Joe
Adding your section into routes.rb seems to give me this error on attempting to run the server: unexpected tASSOC, expecting kEND On May 10, 7:58 pm, Ar Chron wrote: > Assuming you're using REST (far better, IMO), although your map.connect > would make me think otherwise... > > map.resources :tu

[Rails] Re: Changing link_to link location slightly..

2010-05-10 Thread Ar Chron
Assuming you're using REST (far better, IMO), although your map.connect would make me think otherwise... map.resources :tutorials, :controller => "categories" :path_prefix => "/category/:category_id", :name_prefix => "category_" should yield /categories/category.id/tutorials/tutorial.id an