github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

urubatan / mydry

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 0
  • Source
  • Commits
  • Network (0)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • master ✓
    • v02
  • Tags (0)
Sending Request…
Click here to lend your support to: mydry and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A rails plugin that simulates some of the old scaffold funcionality, but using RESTful controllers, will_paginate for pagination and enforces the model first approach — Read more

  cancel

http://www.urubatan.info/tag/mydry/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

gem dependency fix 
urubatan (author)
Sat Apr 26 09:55:27 -0700 2008
commit  2d43bd6a61e616676408d4f41337c96a8e23345d
tree    f742d4d925346847e11e4cc06f0019f39f74fb1f
parent  2215063dfdbd2107c5406de389e50caaebb28dea
mydry /
name age
history
message
file .gemified Loading commit data...
file MIT-LICENSE
file Manifest.txt
file README
file Rakefile
directory generators/
file init.rb
file install.rb
directory lib/
file mydry.gemspec
directory tasks/
directory test/
file uninstall.rb
README
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server