I'm kind of a newbie, so I don't understand all the power of routes and implicit render that can be found in scaffolding
I have an application that have several views which are quite different but based on the controller action.
What I would like is to be able to define routes that would go through the same controller action but would diverge on various views
Something like
/display/:id/:variant
would go to :action=> display and then the render would go to display_variant Right now, all I can do is to render the display.html.erb
Or maybe /display_variant/:id
would do the same
I would be able to have then urls such as /display/25/tall /display/25/wide display/25/mix
and I would only design display_tall.html.erb display_wide.html.erb ...
Any thoughts ?
Thanks in advance
Christophe