This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install urubatan-mydry_generator
mydry /
| name | age | message | |
|---|---|---|---|
| |
.gemified | Tue Apr 22 10:55:50 -0700 2008 | |
| |
MIT-LICENSE | ||
| |
Manifest.txt | ||
| |
README | Wed Feb 20 09:10:56 -0800 2008 | |
| |
Rakefile | Wed Feb 20 09:02:19 -0800 2008 | |
| |
generators/ | ||
| |
init.rb | ||
| |
install.rb | ||
| |
lib/ | Thu Apr 24 10:45:39 -0700 2008 | |
| |
mydry.gemspec | Sat Apr 26 09:55:27 -0700 2008 | |
| |
tasks/ | Wed Feb 20 09:02:19 -0800 2008 | |
| |
test/ | Wed Feb 20 09:02:19 -0800 2008 | |
| |
uninstall.rb |
Mydry ===== This plugin emulates some of the old "scaffold" functionality, but using RESTFul controllers, will_paginate for pagination, partials for forms and enforces the model first approach. The basic workflow is this: 1 - create a migration and define your initial table 2 - ./script/generate drymodel model_name here the model file generated for you, will have all the validations and belongs defined in the database table you can add more validations, configure relationships, code your model 3 - ./script/generate dryscaffold model_name here the scaffold will import the model definition (currently it is working with the database, but the next release will import from the model), and generate all the boilerplate code for you. The origin of this plugin was the need to define a validation in the migration (Eg.: :null => false), in the model again (Eg.: validates_presence_of :column), then again in the view, ... The way this generators work I define one thing once and it is generated in the other places for me. Example ======= Example goes here. Copyright (c) 2008 Rodrigo Urubatan Ferreira Jardim, released under the MIT license













