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/.
>
>
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
(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
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
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
5 matches
Mail list logo