我從運行rake routes
這些航線的航班:爲什麼不`link_to`去我指定
workstations POST /workstations(.:format) workstations#create
new_workstations GET /workstations/new(.:format) workstations#new
edit_workstations GET /workstations/edit(.:format) workstations#edit
GET /workstations(.:format) workstations#show
PUT /workstations(.:format) workstations#update
DELETE /workstations(.:format) workstations#destroy
POST / workstations#delete_history_and_queue
我有這個link_to
在我看來:
= link_to "Update", controller: "workstations", method: "put"
然而我得到這個錯誤:
No route matches {:controller=>"workstations", :method=>"put"}
我沒有指定鏈接使用workstations
控制器與put
方法,理論上這應該導致workstations#update
操作?