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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:15:21+00:00 2026-05-17T17:15:21+00:00

We have the unusual requirement of a multi-step form through GET requests. So, instead

  • 0

We have the unusual requirement of a multi-step form through GET requests. So, instead of POSTing the forms, we’re using GET requests to pass new parameters to the query. So, the basic idea is that there’s a treatment, and a date passed to the query. A three-step form if you will.

  1. Show available treatments, pick one
  2. Show available dates (there’s business logic in the background that figures these out)
  3. Pick a time

The URL will go through the following states

  1. site.com/bookings/new
  2. site.com/bookings/new/[id|name_of_treatment] (by this, I mean it could either by the ID field or the name of the the treatment)
  3. site.com/bookings/new/[id|name_of_treatment]/2010-12-12/

So, my route looks like this:

map.connect 'bookings/new/:massage_type/:date', :controller => :bookings, :action => :new

massage_type is synonymous with the treatment_id.

So my form_tag looks like this:

<% form_tag( {:action => "new"}, :method => "get" ) do %>

The problem I’m having is that I want it to just give me back the URL site.com/bookings/new/[id|name_of_treatment]/ but instead it gives back the following URL:

http://localhost:3000/bookings/new?massage_type[treatment_id]=1&commit=actionnew

I don’t suppose anyone knows?

  • 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-17T17:15:22+00:00Added an answer on May 17, 2026 at 5:15 pm

    Forms that use GET are adding the input values as query parameters. There’s no way to make the form post to a different URL, where the input values are part of the URL instead – it’s just not supported by the HTML standard.

    You could use URL rewrite to remap the incoming URLs of this type to the one you want, however that’s not really a good solution, because this would result in a second request.

    However, what I don’t understand is why does the form need to do GET to that specific URL. Is it a requirement that these URLs can be constructed by the user manually, instead of using the form?

    If there is no such requirement, I would advise to use standard POST form to http://localhost:3000/bookings/new and modify the form in the response based on the parameters in the POST body, as necessary.

    Better yet, write some Ajax that would update the form according to the user’s choice, without making a full form submit, until the user has finished all the choices.

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

Sidebar

Related Questions

I am new to PostgreSQL. I have a very unusual requirement for a hybrid
I have an unusual request. I've just moved to a new apartment and I
I really have a strange situation. I'm making a Linux multi-threaded C application using
I have an slightly unusual security requirement, and I'm looking for advice on best
I have an unusual problem (this is linked to Browser displays � instead of
I have an unusual situation to model in a MS SQL Server database: the
I have a bit of an unusual question. I'm running an old DOS game
Have just started using Google Chrome , and noticed in parts of our site,
Have just started using Visual Studio Professional's built-in unit testing features, which as I
Have you managed to get Aptana Studio debugging to work? I tried following this,

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.