The help at the aptana site fixed both my strange problems.  Thanks so
much.  I was looking into changing to Mongrel/Apache to fix them.

One problem was when doing a find method on an ActiveRecord , ie
Contact.find(1), it would get a seg fault . Contact.save would work
fine and everything was getting to the MySQL db when I used ruby
console.  I'm working my way through the Ruby on Rails Bible by
Timothy Fisher and it was very frustrating when simple examples did
not work but enough worked that I didn't suspect my installation.

The solution from the aptera site was to install a MySQL 5.0 dll
( libmsql.dll )in place of the 5.1 one.  When I looked in the ruby/bin
directory it wasn't even there.   Copying that file over (and
restarting webrick, MySQL server  & console) did the trick. I  thought
I had installed the mysql gem but I'm new to RoR so I certainly could
have messed up somewhere.  It also fixed my strange problem where
trying to view
pages would crash Webrick.

I am using MySQL 5.0 but I do have 5.1 installed.

On May 7, 1:58 pm, "Gregg H." <[email protected]>
wrote:
> Gregg H. wrote:
> > I am also getting this, which I believe is related to the same problem:
>
> > ==  InitialStructureAndData: migrating
> > ========================================
> > -- create_table("areas", {:force=>true})
> > rake aborted!
> > An error has occurred, all later migrations canceled:
>
> > undefined method `each' for #<Mysql:0x4007ff4>
>
> > (See full trace by running task with --trace)
>
> Fixed the problem.  This solves both of my errors:
>
> http://forums.aptana.com/viewtopic.php?f=20&t=7563&p=27407&hilit=libm...
> --
> Posted viahttp://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to