lib/authenticated_members_system.rb
# Redirect as appropriate when an access request fails.
#
# The default action is to redirect to the login screen.
#
# Override this method in your controllers if you want to have special
# behavior in case the user is not authorized
# to access the requested action.  For example, a popup window might
# simply close itself.
Redirect as appropriate when an access request fails.
The default action is to redirect to the login screen.

Override this method in your controllers if you want to have special
behavior in case the user is not authorized
to access the requested action.  For example, a popup window might
simply close itself.
Redirect as appropriate when an access request fails . The default action is to redirect to the login screen . Override this method in your controllers if you want to have special behavior in case the user is not authorized to access the requested action . For example a popup window might simply close itself .
def member_access_denied
      respond_to do |format|
        format.html do
          member_store_location
          redirect_to MemberExtensionSettings.member_defaults[:member_login_path]
        end
        format.any(:json, :xml) do
          request_http_basic_authentication 'Web Password'
        end
      end
    end
def member_access_denied respond_to do | format | format . html do member_store_location redirect_to MemberExtensionSettings . member_defaults [ :member_login_path ] end format . any ( :json , :xml ) do request_http_basic_authentication 'Web Password' end end end
Redirect as appropriate when an access request fails.
Redirect as appropriate when an access request fails .
# format.any doesn't work in rails version < http://dev.rubyonrails.org/changeset/8987 # Add any other API formats here.  (Some browsers, notably IE6, send Accept: */* and trigger  # the 'format.any' block incorrectly. See http://bit.ly/ie6_borken or http://bit.ly/ie6_borken2 # for a workaround.)