我的routes.rb:Ruby on Rails3:我如何在路由中包含非標準方法?
resources :board
root :to => 'application#index'
match ':controller(/:action(/:id(.:format)))'
在我BoardController
我有一個名爲take_turn
方法,但是當我點擊指向板#take_turn一個鏈接,我得到的錯誤:
Unknown action
The action 'show' could not be found for BoardController
鏈接看起來是這樣的:
http://localhost:3000/board/take_turn?x=0&y=0