Nested routing, a question about reordering and renaming of the path

Hi!

Since I’m not at my developing machine at the moment I can’t do any wild
testing, but I want to have an answer to this, I could not find
something
useful on Rails Routing from the Outside In — Ruby on Rails Guides

I have a User that is the author of articles or creator of drawings. In
more
rails terms:

User has many articles and has many pictures.

Now I want routes that looks like the following:

/article/:article/written-by/:user
/:user/painted/:image

Is this way of routing possible without doing the matches by hand?

TIA
Norbert

Top posted from android