Disable SSL during Rails development

Posted: 05/26/2009

Assuming you are using ssl_requirement, to disable SSL in your development environment:

class ApplicationController < ActionController::Base
  include SslRequirement
  
  protected
  def ssl_required?
    RAILS_ENV != 'development' && super
  end
end

About Me

I'm a skier, web developer, entrepreneur, freelancer, and all around stand-up guy living in Manhattan. This is me, repping one of my favorite shirts...

Follow me on twitter or send me an email.

All Posts