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

  • Home
  • SEARCH
  • 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 8675303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:55:03+00:00 2026-06-12T19:55:03+00:00

So a follow up to this question: getting bad request from ruby on rails

  • 0

So a follow up to this question: getting bad request from ruby on rails ssl post.

I fixed that problem and I make the next step in the transaction no problem. The problem I am facing is that their response is sent to an iFrame as a hidden form on an html document. The form then posts to a url that I provide them.

I have tried giving them localhost:3000/policies/complete making a controller action and a route resource for the post but it doesn’t ever show anything.
– It just says javascript error unable to load resource: localhost:3000/policies/complete

So then I tried just /policies/complete (with the coresponding method in my policies controller complete) but for some reason instead of posting to that action – it posted to theirwebserver.com/policies/complete which obviously doesn’t exist.

So since it looks like I have to pass in a whole url for it to work correctly the form is going to look like: <form method='Post' action='whatever whole url I give them'>

The form looks like this:

<form name="frmReturn" method="Post" action="localhost:3000/policies/hosted_checkout_complete">
    <input name="PaymentID" type="hidden" value="the value you need really badly!">
    <input name="ReturnCode" type="hidden" value="0">
    <input name="ReturnMessage" type="hidden" value="Your transaction has been approved."> 
</form>

Tl:DC How do I set up my app to handle that?

I can request that they use get to send the information back to me. If that would be easier to set up and accept please let me know!

  • 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-12T19:55:05+00:00Added an answer on June 12, 2026 at 7:55 pm

    You need to add the protocol (either http:// or https://) to the front of the action=

    <form name="frmReturn" method="Post" action="http://localhost:3000/policies/hosted_checkout_complete">
    

    However, I would NOT recommend doing this… You have completely missed the point of Rails routing. You should be doing something like this:

    <form name="frmReturn" method="Post" action="<%= resource_url %>">
    

    Ideally, you’d use the Rails form builders:

    <%= form_for :resource, :action => 'hosted_checkout_complete' do %>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow up question from Team Foundation Server: Getting the Changeset Id
Hey guys. This is a follow-on from this question : After getting the right
Follow up to this question about GNU make : I've got a directory, flac
This question is a follow on from this one ... I am binding to
Follow up to this question for Facebook Friends.getAppUsers using Graph API that pulls friends
As a follow up to this question , I have a parent entity that
This is a follow-on from this question, in which I was trying to suppress
My question is sort of a follow on from this question below but I
This is a follow up of another question I asked last night. My problem
(This question is a follow up from Safari Scrollbars & SVG - the workaround

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.