Ramaze / ramaze

Ramaze is a simple, light and modular open-source web application framework written in Ruby.
http://ramaze.net
371 stars 37 forks source link

Scaffolding #88

Open mjwelchphd opened 8 years ago

mjwelchphd commented 8 years ago

Scaffolding is an 'on-the-fly' scaffold generator for use during development and debugging. When it is called, it reads the database for information on the specified table, and generates a simple CRUD controller which is tailored to the specific table. Because it's done on the fly, no files are left behind, and it can be turned on and of for 'dev' and 'live' modes. This update includes Bacon specs. Instructions are found in the source code, lib/ramaze/scaffolding.rb.

This is not intended to be a sophisticated scaffolding generator: it exists to provide access to database tables during development. However, It does generate source code, so if that were stored in a file in the controller directory, that would make it permanent, and it could then be modified manually to get a new controller variation.