Rails3.2.7を使用しています。以下に示すように、コントローラーとアクションがあります。
class BookController < ApplicationController
def list
@books = Book.find(:all)
end
end
book.rbまた、modelの下とlist.rhtmlinside\app\views\bookフォルダーという名前のモデルを作成しました。を押すとhttp://127.0.0.1:3000/book/list、次のエラーが発生します。
No route matches [GET] "/book/list"**
ここにありconfig/routes.rbます:
Ravi::Application.routes.draw do
# The priority is based upon order of creation:
# first created -> highest priority.
# rest of the explanations in default "config/routes.rb"
end