Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8807395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:21:29+00:00 2026-06-14T02:21:29+00:00

When I refresh the page I get this error message: ActionController::RoutingError (No route matches

  • 0

When I refresh the page I get this error message:

ActionController::RoutingError (No route matches {:action=>"value", :controller=>"round"}):
  app/views/surveys/survey.html.erb:28:in `block in _app_views_surveys_survey_html_erb___3955880096442191391_70175035205180'
  app/views/surveys/survey.html.erb:22:in `_app_views_surveys_survey_html_erb___3955880096442191391_70175035205180'
  app/controllers/surveys_controller.rb:16:in `block (2 levels) in survey'
  app/controllers/surveys_controller.rb:14:in `survey'    
  Rendered /Users/pitosalas/.rvm/gems/ruby-1.9.3-p194@repeatsurvey/gems/actionpack-3.2.8/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (0.5ms)

I am very confused by this. Why is the reference to program_participant_round_value_path causing that route to be missing?

Here’s my routes file:

root to: 'programs#index'
  resources :programs do
    resources :participants do
      get 'survey' => 'surveys#survey'
    end
    resources :questions
    resources :rounds
    member do
      get 'report' => 'reports#report'
    end
  end
  resources :program do
    resources :participant do
      resources :round do
        put :value
      end
    end
  end

And here’s the relevant rake routes line:

program_participant_round_value PUT    /program/:program_id/participant/:participant_id/round/:round_id/value(.:format) round#value

I have a controller action round#value.

Here’s the relevant part of the view:

<%= content_tag :table do %>
  <%= content_tag :thead do %>
    <% 5.times do |q| %>
      <%= content_tag :th, "1" %>
    <% end %>
  <% end %>
  <% form_tag program_participant_round_value_path do %>
    <%= content_tag :tbody do %>
      <%= render partial: 'surveys/value', collection: @values  %>
    <% end %>
    <%= submit_tag "Save" %>
  <% end %>
<% end %>

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T02:21:30+00:00Added an answer on June 14, 2026 at 2:21 am

    Your program_participant_round_value route is expecting several parameters:

    • :program_id
    • :participant_id
    • :round_id

    You need to provide values for those parameters when you call the program_participant_round_value_path helper:

    program_participant_round_value_path(program_id: @program, participant_id: @participant, round_id: @round)
    

    Of course, variable names and such may be slightly different depending on how you are defining them in the controller.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Sometimes I get a broken background in Chrome. I do not get this error
Sometimes in my web applications I used to get this sort of error, I
When I refresh a page with Firefox, the values of the check boxes, input
How can I refresh a page automatically after a given time period with a
I would like to refresh a page after it got back into the focus.
I'm trying to refresh a page without sending POST from the previous time. I've
instead of a whole page refresh after a certain time, i'd just like a
I have also tried .('refresh') and .page() to no avail. The text-box updates but
I am trying to refresh the page after a cgi execution. In my cgi,
Possible Duplicate: Prevent any form of page refresh using jQuery/Javascript how can i prevent

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.