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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:56:06+00:00 2026-05-20T08:56:06+00:00

I have trouble enabling ssl for my application. I tried various gems/solutions and none

  • 0

I have trouble enabling ssl for my application.

I tried various gems/solutions and none of them work. Here is the list:

  • Rails 3 SSL Deprecation
  • http://collectiveidea.com/blog/archives/2010/11/29/ssl-with-rails/
  • (and some others but I can only post 2 hyperlinks.)

I’ve made sure I removed all the code from my previous attempt.

What do I want

I want the whole (Rails3) application to run trough SSL/HTTPS. I’ve read a number of articles that explain this and tried various solutions (see above).

So what is the problem:

Currently I use the rails 3 bartt/ssl_requirement gem and the problem is that some of the url’s go to a [http://example.com:443 page]. Which result in an page-removed-error. At the same time other url’s are fine and go to [https://example.com] and they work. These url’s which i’m talking about are all from within the same controller which is ssl_forced/ssl_required/whatever. I even tried to contraint all the routes with :protocol => ‘https’, but that resulted in endless-redirects.

I use the bartt/ssl_required atm because the url’s don’t result in endless-redirect-errors, which I got with some other gems/solutions.

I don’t get it… I understand that every encrypted-url goes trough the port 443, but I don’t recall seeing any http/https url’s with the port straight in it.

What causes this strange url behavior within the same controller? Is it because some are named-routes? How do I :constraint them then, because I fail to get this thing working.

  • 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-20T08:56:06+00:00Added an answer on May 20, 2026 at 8:56 am

    I found the solution.

    My ssl-settings were correct, but I used the wrong helper for my links.
    I used the _url-helper method and what it should’ve been is the _path-helper.

    That solved the http://example.com:443 url to https://example.com.
    It seems that the url-helper rewrites the whole url in some way. (must be something like that)

    Hooray for patience.

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

Sidebar

Related Questions

I have trouble using SSL pages with JMeter, which I previously posted here .
I have trouble merging IronPython.dll, IronPython.Modules.dll, Microsoft.Dynamic.dll, Microsoft.Scripting.dll and Microsoft.Scripting.Metadata.dll into my application. The
Greetings! I have some troubles enabling OAuth authentication for my web application running on
I have trouble finding a way to link to class A to E. Here
I have trouble of passing my get_profiles in the same template as r'^compose/$' here.
I have trouble developing an OpenGL application. The weird thing is that me and
I have trouble getting started with rails 3.0.0, because it just doesn't load the
I have trouble with getting page source. require 'mechanize' agent = Mechanize.new page =
I have trouble comparing 2 double in Excel VBA suppose that I have the
I have trouble with the following piece of code. When I go through with

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.