Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scaffolding #88

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open

Scaffolding #88

wants to merge 17 commits into from

Conversation

mjwelchphd
Copy link

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.

mjwelchphd added 17 commits May 12, 2016 01:34
Created a new "tag" method which creates all the tags. The earlier methods, such as input_text, et.al., now just call "tag". Also added an "arrangement" option to allow the label-control fields to be wrapped in paragraphs (the default), or a table for nicer formatting, or no wrapping at all.
…eal methods in the code for the BlueForm HTML5 changes to work.
…w BlueForm updates.

Numbered the tests so I could figure out which was which. The tests below 100 are the original tests, and the ones over 100 are the new tests. If all the tests under 100 pass, the new BlueForm is completely backwards compatible.
…me the project is created. The create function copies in a directory named 'proto-<adapter-name.', then updates the database.yml to the proper values (if the user specifies them). For each database adapter type, just create a new proto-X directory with the contents as needed. See lib/proto-mysql2 for an example.
…for' fails because when you use 'helper :gestalt, :blue_form', the Gestalt.new in BlueForm sees the Gestalt as Module rather than Class. The fix is to use 'Ramaze::Gestalt.new' in BlueForm.
… problem when @g.to_html was called, then @g.to_s was called after that. Fixed by using a String.new to copy the pieces before manipulating them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant