Ruby on Rails
Tuesday, September 16, 2014
Cant you do it already?
On Monday, September 15, 2014 6:34:46 PM UTC+2, Paolo Di Pietro wrote:
-- On Monday, September 15, 2014 6:34:46 PM UTC+2, Paolo Di Pietro wrote:
Hi all,
I'd like to implement (Rails 4) a very high level (generic) abstract controller, able to manage any route and then create a viewer on the fly.
I'd like to call it 'abstracts', and being able to call as
:abstract(/:subject(/:action(/:id)))
something like
abstract/user/create
or
abstract/identity/:john/edit
I'm not sure on the best way to define the correct route, and how to generate the model and the view code on the fly, after getting the definition in the controller from the DB.
Any suggestion is appreciated.
Paolo
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2941d62c-3377-481f-96be-bb3da05f1713%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment