I have bought the Dave T. Agile Developtment with Rails. (I have
previously bought and read his Programming with Ruby book)
On my winxp sp2 system ruby 1.8.15 (one click installer), rails
1.0framework (with ruby gems) and mysql
5.0 are installed.
While following the example stated in the Chapter Building an
had following problem.
After creating databases for test, production, development, and creating
Product table for development database,
I modified the config/database.yml file and I issued the command “ruby
script/generate scaffold Product Admin” depot application
I have received “No connection could be made beacuse the target machine
actively refused it. - connect(2)” while generate script processing
I tought that it was a firewall problem and disabled the personal
After issuing the same command I still received the same error.
When I tried to acces localhost:3000/admin site, I receive a page on
“recognition failed for /admin” is written.
I do not think that I misconfigured database.ym file. I put the users
their passwords whom all are granted access to the specified databases.
development.log has following line for each attempt I made
Processing Base#index (for 127.0.0.1 at 2006-01-22 01:29:24) [GET]
ActionController::RoutingError (Recognition failed for “/admin”):
require' d:/apps/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0 /lib/commands/server.rb:28 d:/apps/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:inrequire__’
(404 Page Not Found)
Any help will be greatly appreciated.