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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:46:18+00:00 2026-06-02T10:46:18+00:00

I have a rails 3 application where I am passing some string queries like

  • 0

I have a rails 3 application where I am passing some string queries like this:

<%= link_to "All", work_orders_path(params.merge({:status_filter => "E", :sort_filter => params[:sort_filter]})) %>

Everything works persistence wise in my views for work_order which is what these parameters are intended for (sorting and filtering existing work orders.)

The problem that I’m having is that when I go to add a new work order with a link_to, or attempt a link_to to another controller, the :status_filter and :sort_filter both are persisting, causing a routing error.

For example when I want to hit the index to view all technicians (of which these are not applicable I get

No route matches {:sort_filter=>nil, :status_filter=>”E”,
:controller=>”technicians”}

I’ve looked everywhere for a solution but as of yet I’ve been unable to come up with anything. I’ve tried params.delete, no dice. I know there must be an easy way to clear these from the URL in the link_to but I can’t figure it out.

  • 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-02T10:46:20+00:00Added an answer on June 2, 2026 at 10:46 am

    I figured out that these links for all my navigation are in my application.html.erb, so any params I use there are carried across the entire app. I still haven’t figured out why. I moved these links to the index.html.erb file in work_orders and now everything else works.

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

Sidebar

Related Questions

Rails noob here. I have a rails application with (in this example) three tables.
I have old rails application. And this application need the same gem with different
I have a rails application and i keep getting this error /srv/projects/app/controllers/application_controller.rb:174: invalid multibyte
I have a rails application and I have all the jQuery scattered out in
I have a rails application and I store all time in UTC in the
I have a rails application in which I implemented some feature. Now I want
I have a rails application that about 3 years old, and I'm having a
I have a rails application, running in development mode ( with a sqlite database
I have a Rails application that uses ActiveRecordStore for sessions. I need a PHP
I have a Rails application that lists information about local services. My objectives for

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.