私はいくつかのアクションを持つコントローラを持っています:
class TestsController < ApplicationController
def find
end
def break
end
def turn
end
end
routes.rb
次のようにファイルに追加すると:
resources :tests
タスクを実行するとrake routes
、次の余分なラウンドが表示されます。
tests GET /tests(.:format) tests#index
POST /tests(.:format) tests#create
new_test GET /tests/new(.:format) tests#new
edit_test GET /tests/:id/edit(.:format) tests#edit
test GET /tests/:id(.:format) tests#show
PUT /tests/:id(.:format) tests#update
DELETE /tests/:id(.:format) tests#destroy
明らかに、私のコントローラーには上記のアクションがありません。では、これらのルートを生成/期待しないようにRailsに指示するにはどうすればよいでしょうか?