実行rake routes
したところ、routes.rb ファイルにない多くのルートが見つかりました。
home_index GET /home(.:format) home#index
POST /home(.:format) home#create
new_home GET /home/new(.:format) home#new
edit_home GET /home/:id/edit(.:format) home#edit
home GET /home/:id(.:format) home#show
PUT /home/:id(.:format) home#update
DELETE /home/:id(.:format) home#destroy
scaffold の生成時に作成されたファイルを手動で削除しましたが、そのテストの混乱を完全にクリーンアップする方法がわかりません。
私の routes.rb ファイルには、次のものがあります。
# define the root
root :to => "home#about"
# define all the possible routes from the home controller
resources :home do
get "about"
get "create_subscription"
end