I’m trying to add ssl to my rails 3.0.7 app using the ssl requirement gem, but when I type
include SslRequirement
into my Application controller, the app fails and I get the following error:
uninitialized constant ApplicationController::SslRequirement
Anybody seen this before?
As my comments on the question indicate, you’re using
gem 'sslrequirement'in your Gemfile, which is pulling down a fork of a fork of a fork of the original, none of which (the ancestors) are the (according to the original) official repository.To fix this, you can use the following line in your Gemfile instead (note the underscore):
Which will pull down the appropriate Gem from https://rubygems.org/gems/ssl_requirement.