Routing question


Given the following rules

MyApp::Application.routes.draw do |map|

resources :accounts do
    resources :comments

match '*path' => redirect("/accounts/%{path}")


Can we get ActionDispatch to, rather than redirect, re-run the routes?
This would come in handy for using account handles, as in

rather than

Any help appreciated.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs