Comment

Comment by Janteh

Wow, I use one before_filter on my Heroku hosted app. Am I doing something wrong here, or is this just Heroku's awesomeness?

  def redirect_to_ssl
    redirect_to :protocol => "https://" unless (request.ssl? or request.local?)
  end
parent Janteh 16 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton