forked from manveru/ramaze
-
Notifications
You must be signed in to change notification settings - Fork 37
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
mjwelchphd
wants to merge
17
commits into
Ramaze:master
Choose a base branch
from
mjwelchphd:scaffolding
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Scaffolding #88
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
…ment code. Updated the version.
…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.
…stalst and blue_form.
…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.
…lopment and debugging.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.