I did the same thing, except I hacked ssl_requirement a little to make it behave the way I wanted.
On Tue, Aug 3, 2010 at 7:59 AM, Jesse <[email protected]> wrote: > I guess you would say this is the 'manual' way to do it :) > > I use ssl_requirement gem > > .gems file specifies ssl_requirement > > in app/controllers/application.rb (still on rails 2.2.2) > > ... > require 'ssl_requirement' > > class ApplicationController < ActionController::Base > helper :all # include all helpers, all the time > # force ssl for all requests in production and staging > include SslRequirement unless (Rails.env.development? or > Rails.env.test?) > ... > > in any controllers that do not need ssl override the ssl_required? > method > > def ssl_required? > return false > end > > > On Jul 30, 1:52 pm, Phil <[email protected]> wrote: > > Does anyone know how I can force all connections to myapp.heroku.com > > to run over https instead of http? I think there are ways to > > configure this manually, but I'm wondering if it's possible with > > Heroku. I have the ssl connection enabled for my app, but I want to > > make sure people typing inhttp://myapp.heroku.comget redirected to > > https. > > > > Thanks, > > Phil > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<heroku%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
