zeratool
zeratool

Reputation: 1281

all urls with https except 1 in rails3

Rails config setting using config.force_ssl = true works like a charm and made all urls with https, but is it possible to have 1 specific url not to have https?

thanks in advance.

Upvotes: 4

Views: 1997

Answers (1)

tee
tee

Reputation: 4429

See Rails Guides: Force HTTPS Protocol

class ThingsController < ApplicationController
  force_ssl :except => :index

Upvotes: 5

Related Questions