Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old November 29th, 2007, 12:22 AM
Registered User
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default chapter 6: scaffold syntax error

i'm trying to run the scaffold command to create the controller and the model for the store. everytime i run the command though i get the following error:

C:\rubydev\ch06\store>ruby script/generate scaffold Item Manage
c:/ruby/lib/ruby/1.8/yaml.rb:133:in `load': syntax error on line 18, col 2: ` host: localhost' (ArgumentError)


any ideas? do i need to install a different version of mysql? i'm currently using:

mysql Ver 14.12 Distrib 5.0.45, for Win32 (ia32)

any info would be appreciated. thanks!

Old January 3rd, 2008, 07:20 AM
Friend of Wrox
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts

I'd check your database.yml points to a valid mysql socket, or server.

If your mysql server is running on a socket something like this would be typical:

    adapter: mysql
    database: xyz_development
    socket: /var/run/mysqld/mysqld.sock
    host: localhost
    username: name
    password: pass
Or if mysql is running as a server:

   adapter: mysql
   host: localhost
   database: xyz_production
   username: name
   password: pass
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 6 - scaffold error, wrong number of args davidtspf BOOK: Beginning Ruby on Rails 12 August 13th, 2010 11:20 PM
SQL syntax error - Chapter 3 cutthroatchemist BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 2 January 15th, 2007 06:19 PM
chapter 6, page 173-175, error in sql syntax vkranendonk BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 3 May 26th, 2004 12:30 PM
Syntax error for chapter 15 AddUser.asp gymmic Classic ASP Databases 7 April 20th, 2004 02:00 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.