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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:52:43+00:00 2026-05-27T14:52:43+00:00

This is my first rails project and first rails post, so I might have

  • 0

This is my first rails project and first rails post, so I might have trouble expressing myself. I’ve looked around but couldn’t find the answer to something I figured would be simple.

The problem is that I have a rails app that presents a button to the user, and the form action has a complete path starting with http://, even when the user is using SSL, so if they click the button they see a silly warning about the data being unencryped. I want the form action URL to start with /… Here’s the code (HAML) that generates the button:

%li= button_to "Pay by Mail", mail_in_payment_new_org_contact_student_application_app_fee_payment_url(@org, current_user.contact, current_application), :method => "get"

Unfortunately, I’m diving into a project and a language with which I am unfamiliar, I’ve also never seen HAML before. I don’t understand completely this resource: mail_in_payment_new_org_contact_student_application_app_fee_payment, nor do I understand how rails generates the URL based on it.

Any info would be really helpful.

Thank you very much.

  • 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-27T14:52:43+00:00Added an answer on May 27, 2026 at 2:52 pm

    Use

    mail_in_payment_new_org_contact_student_application_app_fee_payment_path

    instead of

    mail_in_payment_new_org_contact_student_application_app_fee_payment_url

    In short, the _url helper is absolute, _path is relative. You can read about them here. If you post the contents of config/routes.rb then I’ll take a stab at explaining what that helper method is composed of.

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

Sidebar

Related Questions

This is my first Rails project. For some reason, I can't post to one
I have repository at github for ruby on rails project. First time i did
So this is my first real Ruby on Rails project. I've learned my lesson
Alright. First off, I am new to Rails and this is the first project
Saw this piece of code in a Ruby on Rails book. This first one
First as a note I am using this plugin in a Rails app. Ok
problem euler #5 i found the solution but i don't know why this first
Using Dozer to map two objects, I have: /** /* This first class uses
I have a JSON data like this: { hello: { first:firstvalue, second:secondvalue }, hello2:
I'm doing my first Ruby on Rails project. I am working on a project

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.