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 :D 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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
That looks nice! Thanks for sharing it. On May 2, 10:20 am, Urubatan <uruba...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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 :D > 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.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
wow that''s a great idea, unless rails already does it [?] On Fri, May 2, 2008 at 11:20 AM, Urubatan <urubatan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > 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 :D > 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. > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Rodrigo Urubatan Ferreira Jardim
2008-May-03 05:34 UTC
Re: Generator for lazy people (mydry)
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. On Sex, 2008-05-02 at 23:17 -0600, Roger Pack wrote:> wow that''s a great idea, unless rails already does it [?] > > On Fri, May 2, 2008 at 11:20 AM, Urubatan <urubatan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > 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 :D > > 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. > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---