The database connection is set in config/init.rb or config/environment/ <env>.rb as instructed to do so in the MEAP Merb book which worked in version 0.9.3. Running merb-gen resource <resourcename> without any other parameters works properly but when I try to run a migration after editing the associated <model>.rb file it throws the second error.
-AE On Oct 7, 2:54 am, Jonathan Stott <[EMAIL PROTECTED]> wrote: > On Tue, 7 Oct 2008 11:27:39 +0300 > > "Michael Klishin" <[EMAIL PROTECTED]> wrote: > > > 2008/10/7 Calculon <[EMAIL PROTECTED]>: > > > > ~ No database.yml file found in /home/aeufemio/projects/my_new_app/ > > > config, assuming database connection(s) established in the environment > > > file in /home/aeufemio/projects/my_new_app/config/environments > > > It's the very reason. Read output carefully before you make judgements. > > -- > > MK > > It's nothing to do with that, actually. That's never effected model > generation. > > I can confirm that 'merb-gen resource Page' does work without any > database.yml. As does 'merb-gen resource Page title:string'. The problem > comes when you try 'merb-gen resource Page title:string body:text' (as in, > two properties). > > Then it just displays the help text. > > Regards, > Jon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "merb" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/merb?hl=en -~----------~----~----~----~------~----~------~--~---
