Permalink
Browse files

flash style changes and force SSL

  • Loading branch information...
nov committed May 14, 2011
1 parent adb4851 commit dbcad7a49b2ab0535f12151b100f04326f2b155f
Showing with 3 additions and 5 deletions.
  1. +2 −4 app/controllers/payments_controller.rb
  2. +1 −1 config/environments/production.rb
@@ -17,8 +17,7 @@ def create
def destroy
Payment.find_by_identifier!(params[:id]).unsubscribe!(client)
- flash[:notice] = 'Recurring Profile Canceled'
- redirect_to root_path
+ redirect_to root_path, notice: 'Recurring Profile Canceled'
end
def success
@@ -57,8 +56,7 @@ def handle_callback
end
def paypal_api_error(e)
- flash[:error] = e.response.details.collect(&:long_message).join('<br />')
- redirect_to root_url
+ redirect_to root_url, error: e.response.details.collect(&:long_message).join('<br />')
end
end
@@ -20,7 +20,7 @@
config.action_dispatch.x_sendfile_header = "X-Sendfile" # Use 'X-Accel-Redirect' for nginx
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
- # config.force_ssl = true
+ config.force_ssl = true
# See everything in the log (default is :info)
# config.log_level = :debug

0 comments on commit dbcad7a

Please sign in to comment.