ruby on rails - Controller to match root routes -
i want have controller active @ root of application, so:
www.example.com/1 return post id of 1 in foo controller.
how can this?
get '/:id', :controller => 'foo', :action => 'show'
seems work. best way it?
Comments
Post a Comment