Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 15th, 2007, 02:20 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 6: store not working

I having a problem. I write
Quote:
quote:ruby script/generate scaffold Item Manage
like on page 167, but i have an error, and the application don't work:
Quote:
quote:
E:\rubydev\store>ruby script/generate scaffold Item Manage
      exists app/controllers/
      exists app/helpers/
      create app/views/manage
      exists app/views/layouts/
      exists test/functional/
  dependency model
      exists app/models/
      exists test/unit/
      exists test/fixtures/
      create app/models/item.rb
      create test/unit/item_test.rb
      create test/fixtures/items.yml
Bad file descriptor - connect(2)

E:\rubydev\store>
The MySQL databeses is working and the table items too.
Quote:
quote:
mysql> show databases;
+---------------------+
| Database |
+---------------------+
| information_schema |
| mysql |
| store_development |
| store_production |
| store_test |
| test |
+---------------------+
9 rows in set (0.01 sec)

mysql> use store_development
Database changed
mysql> show tables;
+-----------------------------+
| Tables_in_store_development |
+-----------------------------+
| items |
+-----------------------------+
1 row in set (0.00 sec)

mysql> describe items;
+-------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(80) | NO | | | |
| description | text | NO | | | |
| price | decimal(8,2) | NO | | | |
+-------------+--------------+------+-----+---------+----------------+
4 rows in set (0.11 sec)

mysql>
The database.yml file is right.
Any assistance in getting this to work would be great. Thanks.
Reply With Quote
  #2 (permalink)  
Old May 16th, 2007, 04:57 PM
Registered User
 
Join Date: Mar 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have find the solution. Finally.
Rails need who mysql listening on port 3306, hence on file my.ini under [mysql] and [mysqld] i change my 3309 with 3306.
I hope this discovery be of use for folk. byebye
Reply With Quote
  #3 (permalink)  
Old June 17th, 2007, 11:17 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have a similar issue, I type:

Code:
ruby script/generate scaffold Item Manage
I get:

Code:
      exists  app/controllers/
      exists  app/helpers/
      create  app/views/manage
      exists  app/views/layouts/
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
      create    app/models/item.rb
      create    test/unit/item_test.rb
      create    test/fixtures/items.yml
dyld: ruby can't open library: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib  (No such file or directory, errno = 2)
Trace/BPT trap
I am running Mac OS X 10.3.9.

any help or suggestions would help, I don't have a my.ini.

Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chapter 3 - a:visited not working VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 4 April 3rd, 2008 12:31 AM
Chapter 1: Greeting Not Working Joe3000 BOOK: Beginning Ruby on Rails 2 June 14th, 2007 10:54 AM
Working Code for Chapter 4 clomby BOOK: Professional PHP 5 ISBN: 978-0-7645-7282-1 1 December 26th, 2005 05:44 AM
CHAPTER 18 example not working also! diegoborgh BOOK: Beginning JavaServer Pages 0 May 26th, 2005 11:16 PM



All times are GMT -4. The time now is 10:35 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.