フォームを送信した後、送信された値の一部を新しい URL (リダイレクト先のページ) に保存したいと考えています。
例えば:
www.someurl.com/myproject?limit=10
私が試してみました
patient_record_path(limit: 10)
しかし、それはうまくいかないようです
エラーが表示されます: ルートが一致しません {:action=>"show", :controller=>"patient_record", :limit=>10}
編集:だから私はそれを
patient_record_path(id: 1, limit: 10)
これはレンダリングされますが、これらの値は URL に表示されません
レーキルート
patient_record_index GET /patient_record(.:format) patient_record#index
POST /patient_record(.:format) patient_record#create
new_patient_record GET /patient_record/new(.:format) patient_record#new
edit_patient_record GET /patient_record/:id/edit(.:format) patient_record#edit
patient_record GET /patient_record/:id(.:format) patient_record#show
PUT /patient_record/:id(.:format) patient_record#update
DELETE /patient_record/:id(.:format) patient_record#destroy