Generator for lazy people (mydry)

I have just release a rails plugin with a generator that takes the
information you already wrote on the migration and creates a model
with that information already included.
for example:
not null fields
belongs_to associations
numeric fields

I created this plugin because I do not like to write things more than
one time :smiley:
so, please take a look at the plugin, all your comments will be very
welcome.
http://www.urubatan.info/2008/04/lazy-mens-rails-plugin-mydry/
The code is hosted at github.
it can be installed as a rails plugin or as a gem.

That looks nice! Thanks for sharing it.

wow that’s a great idea, unless rails already does it [?]

Rails did similar things in the 1.2.x with scaffold but just for
controllers, not for validations and relationships …
I just ound that there is another plugin “Magic Models” that does simiar
things, but magic models is “too much magic” for me, you can even call a
model class that does not exists yet with that plugin.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs