You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want the user to attempt the question only once and after that edit the answer if he want to. The routes specifies 'edit_survey_attempt GET /surveys/:survey_id/attempts/:id/edit(.:format) rapidfire/attempts#edit' for editing on the user side . I tried using the 'edit_survey_attempt_path' (just like 'new_survey_attempt_path')to redirect to the edit view by this line of code in _survey.html.erb :
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs for another 14 days. Thank you for your contributions.
I want the user to attempt the question only once and after that edit the answer if he want to. The routes specifies 'edit_survey_attempt GET /surveys/:survey_id/attempts/:id/edit(.:format) rapidfire/attempts#edit' for editing on the user side . I tried using the 'edit_survey_attempt_path' (just like 'new_survey_attempt_path')to redirect to the edit view by this line of code in _survey.html.erb :
but gave the error above. I'm I doing something wrong, please help !!!
Detailed description of error:
No route matches {:action=>"edit", :controller=>"rapidfire/attempts", :survey_id=>#<Rapidfire::Survey id: 6, name: "Test survey", created_at: "2017-09-27 17:47:17", updated_at: "2017-09-27 17:47:17">}, missing required keys: [:id]
The text was updated successfully, but these errors were encountered: