Forum: Ruby on Rails Unable to generate models?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E6c03dab69dcb70b8e22f7ba45ea0e5b?d=identicon&s=25 DigitalWarfare@gmail.com (Guest)
on 2007-02-23 02:24
(Received via mailing list)
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 -.-.
C3bdd57da4de3560baac7b267eb32012?d=identicon&s=25 new rails user (Guest)
on 2007-02-23 03:20
Maybe you should try "ruby script/generate model classified"?
E6c03dab69dcb70b8e22f7ba45ea0e5b?d=identicon&s=25 DigitalWarfare@gmail.com (Guest)
on 2007-02-23 03:37
(Received via mailing list)
Yeah...that doesn't matter man. help...!?

On Feb 22, 7:20 pm, new rails user <rails-mailing-l...@andreas-s.net>
E6c03dab69dcb70b8e22f7ba45ea0e5b?d=identicon&s=25 DigitalWarfare@gmail.com (Guest)
on 2007-02-23 06:57
(Received via mailing list)
DOES ANYONE HAVE A SOLUTION!

On Feb 22, 6:23 pm, "DigitalWarf...@gmail.com"
6076c22b65b36f5d75c30bdcfb2fda85?d=identicon&s=25 Ezra Zygmuntowicz (Guest)
on 2007-02-23 07:39
(Received via mailing list)
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@gmail.com wrote:

>>         from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/
>>         from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.2/lib/
>> 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@engineyard.com
-- Engine Yard, Serious Rails Hosting
-- (866) 518-YARD (9273)
7350ea8e421667c37a05381a954acc31?d=identicon&s=25 rhinmass (Guest)
on 2007-02-27 21:07
(Received via mailing list)
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...@gmail.com"
This topic is locked and can not be replied to.