Y
Hacker News
new
|
ask
|
show
|
jobs
by
Janteh
5712 days ago
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
1 comments
mnutt
5712 days ago
Heroku is awesome, but one of the drawbacks (to my knowledge) is that you can't set up nginx redirects. So with that setup each user incurs an extra rails request once per session.
link