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
Project
urubatan-mydry_generator
mydry is a rails generator that enables you to work in a drier way, using the information you already provided in the migration to create your models, for example all the non nulls, uniques, numerics and relations defined in the database are already defined in the model with the corresponding validation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
Development
Dependencies
Runtime
> 2.0.0
Project Readme