I cannot for any circumstances get my application to work. I have Ruby
on Rails on Windows XP. It will NOT connect my database for some
reason. I am using Instant Rails. I have Apache and MySQL turned on.
What I have tried:
Start with Mongrel.
Ruby script/server
Changing my database.yml file
I have typed in: 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 go to my page. Here is what I see: Action Controller: Exception
caught Routing Error
no route found to match “/admin” with {:method=>:get}
There is nothing in my controller folder. Is there suppose to be? Does
anyone know what I am doing wrong.