DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-23 01:23 UTC
Unable to generate models?
ruby script/generate model Classified /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line 18, col 2: ` host: localhost'' (ArgumentError) from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ initializer.rb:523:in `database_configuration'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ initializer.rb:228:in `initialize_database'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ initializer.rb:88:in `process'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ initializer.rb:43:in `run'' from ./script/../config/../config/environment.rb:13 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require'' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ commands/generate.rb:1 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ custom_require.rb:27:in `require'' from script/generate:3 I am not really sure what''s wrong. Please point me in the right direction. I am a newby to ruby and it is becoming a rather discouraging language to use because of it''s LACK of simplicity to create a simple application right now. Please tell me this gets easier later -.-. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Maybe you should try "ruby script/generate model classified"? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-23 02:36 UTC
Re: Unable to generate models?
Yeah...that doesn''t matter man. help...!? On Feb 22, 7:20 pm, new rails user <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Maybe you should try "ruby script/generate model classified"? > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Feb-23 05:57 UTC
Re: Unable to generate models?
DOES ANYONE HAVE A SOLUTION! On Feb 22, 6:23 pm, "DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> ruby script/generate model Classified > > /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line > 18, col 2: ` host: localhost'' (ArgumentError) > from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'' > from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ > initializer.rb:523:in `database_configuration'' > from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ > initializer.rb:228:in `initialize_database'' > from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ > initializer.rb:88:in `process'' > from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ > initializer.rb:43:in `run'' > from ./script/../config/../config/environment.rb:13 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `require'' > from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ > commands/generate.rb:1 > from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ > custom_require.rb:27:in `require'' > from script/generate:3 > > I am not really sure what''s wrong. Please point me in the right > direction. > > I am a newby to ruby and it is becoming a rather discouraging language > to use because of it''s LACK of simplicity to create a simple > application right now. Please tell me this gets easier later -.-.--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
The error is in your database.yml file. Make sure it has no extra spaces or any tabs in it. -Ezra On Feb 22, 2007, at 9:57 PM, DigitalWarfare-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> > DOES ANYONE HAVE A SOLUTION! > > On Feb 22, 6:23 pm, "DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" > <DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> ruby script/generate model Classified >> >> /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'': syntax error on line >> 18, col 2: ` host: localhost'' (ArgumentError) >> from /usr/local/lib/ruby/1.8/yaml.rb:133:in `load'' >> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ >> initializer.rb:523:in `database_configuration'' >> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ >> initializer.rb:228:in `initialize_database'' >> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ >> initializer.rb:88:in `process'' >> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ >> initializer.rb:43:in `run'' >> from ./script/../config/../config/environment.rb:13 >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `require'' >> from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/ >> commands/generate.rb:1 >> from /usr/local/lib/ruby/site_ruby/1.8/rubygems/ >> custom_require.rb:27:in `require'' >> from script/generate:3 >> >> I am not really sure what''s wrong. Please point me in the right >> direction. >> >> I am a newby to ruby and it is becoming a rather discouraging >> language >> to use because of it''s LACK of simplicity to create a simple >> application right now. Please tell me this gets easier later -.-. > > > >-- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez-NLltGlunAUd/unjJdyJNww@public.gmane.org -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
I had the same problem (which led me to this post). I finally figured out I had no space between "host:" and "localhost". On Feb 23, 12:57 am, "DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org" <DigitalWarf...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> DOES ANYONE HAVE A SOLUTION! > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---