I am still somewhat new to Rails but have created a successful app on a
Windows box and am venturing out for my first Mac Rails app. Being
relatively new to Macs as well, I believe I have a good install of the
latest versions (ruby, rails, mysql, webrick) but have hit two snags.
First - when I try to scaffold one of the controllers (i.e.
localhost:3000/mycontroller/new) just to check that my connection to the
db is good, I get the NoMethodError message in my browser. Everything is
set up right to the best of my knowledge, but it seems I am not making a
connection to the db. When I run the mycontroller/list page I get a lost
connection to the mysql database message. My database.yml file is
looking to localhost/port 3306. Maybe I am missing something…
Second - this was odd - but the Terminal would hang about part way
through the execution of:
ruby script/generate scaffold item
the generate model and controller scripts worked fine.
THANKS A BUNCH!