Noobish URI Question

Sorry if the answer has been posted but the search terms (like URI) are
so generic I get tons of useless results.

I have a controller (in this case “forum_controller”) so if I want to
read a forum topic the URI is “/forum/topic/1”. As of right now for
adding a new topic my URI is setup as “/forum/new_topic”.

I’d really like it to be something like “/forum/topic/new”. Is there
some method naming convention in the controller to allow for this?

you could do this with routing I presume …

you’ll get something like

map.connect “forum/topic/new”,
:controller => “forum”,
:action => “new_topic”

Kind regards,
Jeroen

Jeroen van Doorn wrote:

you could do this with routing I presume …

you’ll get something like

map.connect “forum/topic/new”,
:controller => “forum”,
:action => “new_topic”

Kind regards,
Jeroen

Yeah, I was hoping I could do something like name the method topic::new
or something similar but that didn’t work. I’ll just leave it as
new_topic for now instead of creating custom routes for each instance.