When I try to generate scaffold using the generated database.yml file (after adding the required info of course) I get the following error:

root@kubuntu:/var/rails/tutorial# script/generate scaffold note
exists app/controllers/
exists app/helpers/
create app/views/notes
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/note.rb
create test/unit/note_test.rb
create test/fixtures/notes.yml
No such file or directory - /tmp/mysql.sock

What's with the /tmp/mysql.sock error? In the older versions of database.yml the generator would include the socket: param but the newer generator doesn't.

If I add the socket: /var/run/mysqld/mysqld.sock param to the end of each database config in /config/database.yml I don't get the error:

root@kubuntu:/var/rails/tutorial# script/generate scaffold note
exists app/controllers/
exists app/helpers/
exists app/views/notes
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/note.rb
identical test/unit/note_test.rb
identical test/fixtures/notes.yml
create app/views/notes/_form.rhtml
create app/views/notes/list.rhtml
create app/views/notes/show.rhtml
create app/views/notes/new.rhtml
create app/views/notes/edit.rhtml
create app/controllers/notes_controller.rb
create test/functional/notes_controller_test.rb
create app/helpers/notes_helper.rb
create app/views/layouts/notes.rhtml
identical public/stylesheets/scaffold.css

I've also had to chmod 777 the tmp/sessions tmp/sockets and tmp/cache directories in the application root to get around a permissions error where rails could not write sessions. The directories were auto-generated for me though it seems some people have been posting about them being missing. Is there an underlying problem? I've never had to chmod anything with rails before.

Has anyone else encountered this wierdness. I'll admit that the upgrade to ruby1.8.4 and rails1.1 wasn't the smoothest for me. I buggered up some stuff and had a heck of a time getting it done so my installation could still be a little borked.

Thanks