Displaying 2 results from an estimated 2 matches for "scaffold_all_models".
2007 Jun 27
1
Active Scaffold controllers created dynamically at runtime?
...Rails'' routes into anonymous controller
classes created at runtime (defined with their superclass as
ActionController::Base)?
I''m trying to create a plugin for all of my projects that dynamically
creates an active_scaffold controller for each model. It would
essentially be like a scaffold_all_models for active_scaffold. I believe
the original scaffold extensions mix in functionality to
ActionController::Base, whereas active_scaffold (greedily) requires a
separate controller for each model it scaffolds... hence my attempt to
create dynamic controllers.
PS: If anyone has already created a plugi...
2006 Mar 01
7
Instant Management Frontend with the Scaffolding Extensions Plugin
...models and associations with one command
2) Show all associated objects on the edit page
Example of usage:
In an existing Rails application, create a controller (i.e.
"script/generate controller crud"), and modify so it looks like:
class CrudController < ApplicationController
scaffold_all_models
end
Then go to the index page for the controller (e.g.
http://website/crud). You''ll see a link to a management page for each
of your models. Each management page has links to create, delete,
edit, show, search, and merge pages for the model. The edit pages
will show all associated obje...