Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ActionController::UrlGenerationError in Rapidfire::Surveys#index #124

Open
reynold2468 opened this issue Sep 28, 2017 · 1 comment
Open

Comments

@reynold2468
Copy link

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 :

  • <%= link_to "Edit Answer", edit_survey_attempt_path(survey) , :id => 'text' %>

  • 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]

    • <%= link_to "Answer Questions", new_survey_attempt_path(survey) , :id => 'text' %>
    • <%= link_to "Edit Answer", edit_survey_attempt_path(survey) , :id => '28' %>
    •   <% if can_administer? %>
          <button class="button btn  btn-xs fadeInDownBig animated  login"> <li><%= link_to "Results", [:results, survey] %></li></button>
      
    @stale
    Copy link

    stale bot commented Aug 28, 2019

    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.

    @stale stale bot added the stale/wontfix label Aug 28, 2019
    @stale stale bot closed this as completed Sep 11, 2019
    @iffyuva iffyuva reopened this Jan 2, 2023
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    None yet
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants