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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T15:44:23+00:00 2026-05-25T15:44:23+00:00

I want to have https for entire application. I decided to use this gem:

  • 0

I want to have https for entire application.

I decided to use this gem:

https://github.com/tobmatth/rack-ssl-enforcer

However after adding at end

gem 'rack-ssl-enforcer'

in Gemfile and

config.middleware.use Rack::SslEnforcer

in application.rb at end I get error:

/path_to_app/www/.ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `send': undefined method `Rack' for #<App1::Application:0xf6dcb314> (NoMethodError)
    from /path_to_app/www/.ruby/gems/1.8/gems/railties-3.0.9/lib/rails/application.rb:77:in `method_missing'
    from /path_to_app/www/stolikarnia/config/application.rb:57
    from /path_to_app/www/.ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:21:in `require'
    from /path_to_app/www/.ruby/gems/1.8/gems/railties-3.0.9/lib/rails/commands.rb:21
    from script/rails:6:in `require'
    from script/rails:6

As you see from logs i use Rails 3.0.9. I can’t upgrade to RoR 3.1.0 because of dependencies.

  • 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-25T15:44:24+00:00Added an answer on May 25, 2026 at 3:44 pm

    In your Gemfile change the requirement to

    gem 'rack-ssl-enforcer', :require => 'rack/ssl-enforcer'
    

    Then, in your application.rb pass the class name as String to take advantage of lazy evaluation.

    config.middleware.use "Rack::SslEnforcer"
    

    As a side note, I encourage you to check https://github.com/josh/rack-ssl. It’s the middleware introduced in Rails 3.1. You can already use it in Rails 3.0 with the additional benefit you won’t need to change it once you’ll upgrade to Rails 3.1.

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

Sidebar

Related Questions

I have inherited a subversion repo which looks like this: https://foo/product/src I want to
if i have submitted the iphone WebApp at https://adcweb.apple.com/iphone/index.php using ADC Account. i want
In a blog in Rails I want to have paths like http://mydomain.com/posts/28383/comments#21 This is
I have a string like: string str = https://abce/MyTest; I want to check if
I have some java-app, and i want to establish a connection to some https
I want to have my site urls look like http://example.com/place/info?var=info&morevars=ifneeded Place and info are
My screenshot http://dl.getdropbox.com/u/240752/stars.gif I want to have it so that only the text is
This is what I'm talking about: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/ComboBox/ComboBox.aspx basically I want to have a drop
So, i have a div which i want to take up the entire width
I am looking at such previous questions as: https://stackoverflow.com/questions/98334/creating-a-java-servlet-web-application How many actions should a

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.