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 3842082
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T15:44:34+00:00 2026-05-19T15:44:34+00:00

Alright, getting a pretty bizarre routing error here. No route matches {:controller=>subscriptions, :action=>change} Extracted

  • 0

Alright, getting a pretty bizarre routing error here.

No route matches {:controller=>"subscriptions", :action=>"change"}

Extracted source (around line #22):

19:     <td><%= s.product.name %></td>
20:     <td><%= s.calc_time_to_next_arrival %></td>
21:     <td>
22:         <%= form_for(:subscription, s, :url => { :action => "change" }, :id => s) do %>
23:             <%= label_tag(:q, "Days to delay:") %>
24:             <%= text_field_tag(:query) %>
25:             <%= check_box_tag(:always) %>

And yet if I run rake routes this is what I get

change_subscription GET    /subscriptions/:id/change(.:format {:controller=>"subscriptions", :action=>"change"} 

Pretty sure that means it should be there. Not sure what is going on.

Here is where the route is stated in routes.rb

resources :subscriptions do
    member do
      get 'change'
    end
  end

Here’s the controller though for subscriptions

def change
    @subscription = Subscription.find(params[:id])
    @subscription.change(:query, :always)
    redirect_to :back
  end
  • 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-05-19T15:44:35+00:00Added an answer on May 19, 2026 at 3:44 pm

    That should be post 'change', instead of get 'change'

    Er, I meant put 'change', of course.

    How about:

    <%= form_for s, :url => change_subscription_path(s) do |f| %>

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

Sidebar

Related Questions

after debbuging i am getting following url of my webproject: http://localhost:54594/Home/Home /Home-Controller/Home-Action http://localhost:54594/AboutUs/AboutUs /AboutUs-Controller/AboutUs-Action
Alright, so here's my problem. I'm trying to write a script in PHP that
Alright, I'm having trouble getting started on this one. I'm trying to use the
I thought I'd be getting along alright with F# since I'm decent at Haskell,
Alright, using my XML editor to check the validation I'm getting Validation stopped at
I am getting started with HTML and PHP. Doing alright, I understand the syntax
Alright. So I figure it's about time I get into unit testing, since everyone's
Alright, currently I have my SWF hitting a php file that will go and
Alright, I have been doing the following (variable names have been changed): FileInputStream fis
Alright. So I have a very large amount of binary data (let's say, 10GB)

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.