form_tag フォームを作成しました:
<%= form_tag(set_image_dokumente_path) do %>
<%= text_field_tag :shit,'', data: {autocomplete_source: search2_patients_path}, :class => "shit" %>
<% end %>
dokumente コントローラの set_image アクションにルーティングしようとしましたが、エラーが発生しました:
undefined local variable or method `set_image_dokumente_path' for #<#<Class:0x711ff60>:0x762d578>
デフォルトでは、私の form_tag は dokumente コントローラの index アクションに行きます! 私のルート:
resources :images
get "dokumente/index"
post "dokumente/index"
match 'patients/list' => 'patients#list'
resources :patients do
collection do
get :search2
end
end
どうすれば変更できますか?