SSL test
This commit is contained in:
@@ -7,11 +7,15 @@ class ApplicationController < ActionController::Base
|
||||
# Prevent CSRF attacks by raising an exception.
|
||||
# For APIs, you may want to use :null_session instead.
|
||||
protect_from_forgery with: :exception
|
||||
|
||||
if ENV['RAILS_ENV'] || 'production'
|
||||
force_ssl only: :success
|
||||
end
|
||||
|
||||
before_filter :capture_page_info
|
||||
|
||||
def capture_page_info
|
||||
init_vars
|
||||
init_vars
|
||||
$page_info = {:path => request.env['PATH_INFO'], :controller => params['controller'], :action => params['action']}
|
||||
end
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
include ApplicationHelper
|
||||
|
||||
class PagesController < ApplicationController
|
||||
#skip_before_filter :verify_authenticity_token, only: [:translate]
|
||||
|
||||
def home
|
||||
@conferences = Conference.all
|
||||
|
||||
Reference in New Issue
Block a user