Rails3.2.7を使用しています。以下に示すように、コントローラーとアクションがあります。
class BookController < ApplicationController
def list
@books = Book.find(:all)
end
end
book.rb
また、modelの下とlist.rhtml
inside\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