Ruby on Rails plugin for versatile scaffolding
Ruby JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/helpers/ponteggio
development
doc
lib
tasks
test
MIT-LICENSE
README.textile
Rakefile
environment.rb
init.rb
install.rb
uninstall.rb

README.textile

This is the plugin. It contains development Rails app to play around with things without need for restarting the framework. Mock app(s) for testing are baked in, too.


Ponteggio is a plugin for easy and customizable scaffolding. It is not a scaffold generator and it is not a complete CRUD-management system (or, better, does not have to be). You can easily create the seven CRUD methods and the respective views:

controller SomeObjectController < ApplicationController

	ponteggio SomeObject, :crud

end

And that’s it! Sometimes, you want to redefine the column kind (maybe it cannot be guessed from the schema and reflections), throw in sorting (using SearchLogic) or change has_many association view from comma-separated to multi-line.

controller SomeObjectController < ApplicationController

	ponteggio SomeObject, :crud
	
	column :article_body, :kind => :wysiwyg
	column :title, :sortable => true
	column :watchers, :list => :long

end

Easy!

The best thing is that you needn’t to stick to this, but you can just reuse some parts of Ponteggio.