Hi everyone,
I am new to ruby on rails and I have just started reading “Agile web
development with rails” The first testing pages have worked out fine but
I can not create the maintenance application.
Book says:
we conï¬gured our application to be able to connect to the databases.
Time
to write the maintenance app.
depot> ruby script/generate scaffold Product Admin
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/product.rb
create test/unit/product_test.rb
: :
create app/views/admin/show.rhtml
create app/views/admin/new.rhtml
create app/views/admin/edit.rhtml
create app/views/admin/_form.rhtml
When I do the same:
depot$ ruby script/generate scaffold Product Admin
exists app/controllers/
exists app/helpers/
exists app/views/admin
exists test/functional/
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
identical app/models/product.rb
identical test/unit/product_test.rb
identical test/fixtures/products.yml
No such file or directory - /tmp/mysql.sock
I have tried a couple of times and thats why it says exists but what is
wrong with next sentence?
“No such file or directory - /tmp/mysql.sock”
When I try it out at http://localhost:3000/admin I recieve this:
Recognition failed for “/admin”
Please help!