:어떤 경로 일치하는 항목이 없습니다 {: 컨트롤러 => "유물": 행동 => "편집"} 나는 어떤 경로 행동 '편집'</p> <p>컨트롤러에 대한 일치하지 이러한 오류가 계속
def remove_artifact_from_collection
... do my stuff ..
render(:action=>:show)
end
보기 : 라인이있는 IT 오류
<p><%= link_to 'Edit Evidence Item', edit_artifact_path, :class => 'edit_button' %></p>
경로 :
resources :artifacts do
collection do
get 'remove_artifact_from_collection'
end
end
번들 간부 레이크 노선
당신이edit_artifact_path
에 유물/ID를 제공하지 않을 때문이다
remove_artifact_from_collection_artifacts GET /artifacts/remove_artifact_from_collection(.:format) {:controller=>"artifacts", :action=>"remove_artifact_from_collection"}
artifacts GET /artifacts(.:format) {:controller=>"artifacts", :action=>"index"}
POST /artifacts(.:format) {:controller=>"artifacts", :action=>"create"}
new_artifact GET /artifacts/new(.:format) {:controller=>"artifacts", :action=>"new"}
edit_artifact GET /artifacts/:id/edit(.:format) {:controller=>"artifacts", :action=>"edit"}
artifact GET /artifacts/:id(.:format) {:controller=>"artifacts", :action=>"show"}
PUT /artifacts/:id(.:format) {:controller=>"artifacts", :action=>"update"}
DELETE /artifacts/:id(.:format) {:controller=>"artifacts", :action=>"destroy"}
레이크 루트는 무엇을 표시합니까? – DickieBoy