Women in Technology

Hear us Roar



Article:
  Rolling with Ruby on Rails Revisited
Subject:   Still having problem doing this tutorial
Date:   2008-03-14 10:54:22
From:   zman_sd
Just installed and started running the tutorial (using ruby 1.8.6) and got past the scaffolding changes (only use one recipe and category) that others had also noticed. Also changed the url to view the categories and recipes (http://localhost:3000/categories or http://localhost:3000/receipes) and that all works fine. HOWEVER, if I try and click on the link it first displays an error on the browser saying:



NoMethodError in CategoriesController#new


undefined method `each' for #<Mysql:0x3ea8f28>
....


if I then hit the back button or refresh the initial page it brings down mongrel with the error on the command line:



** Use CTRL-C to stop.
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.0.2/lib/active_record/connection_a
dapters/mysql_adapter.rb:471: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i386-mswin32]



This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.


Any help would be appreciated..


Full Threads Oldest First

Showing messages 1 through 1 of 1.

  • Still having problem doing this tutorial
    2008-03-14 17:32:51  zman_sd [View]

    fixed my own problem so I thought I would let anyone else know that falls into this trap that the problem is MySql 5.1. If you downgrade to MySQL 5.0.x then things will work more or less like the tutorial says.