Re: - Error on Rake DB:Create

Matt Jones
Sat, 30 Jan 2010 21:18:31 -0000

On Jan 28, 8:50 am, Nelson André
<nelson.dias.an...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> Hello there,
>
> this is my first post and I''m new to Ruby on Rails.
>
> I''m getting the following error when I do "rake
db:create" :
>
> (in /home/nelson/rubyapps/blog)
> rake aborted!
> syntax error on line 24, col 1: ` socket : /var/run/mysqld/
> mysqld.sock''
>

I can recreate this in irb:

require ''YAML'';
YAML.load(''foo: bar'') #=> { ''foo'' =>
''bar'' }

YAML.load("  foo: bar\n\tbaz: woot")
# => ArgumentError: syntax error on line 1, col 0: `	baz: woot''

It''s caused by mixing tabs and spaces in a YAML file, which is
forbidden.

--Matt Jones

--
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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.