module Devise::Controllers::Helpers

def authenticate!(scope)

redirecting in case of failures.
Attempts to authenticate the given scope by running authentication hooks,
def authenticate!(scope)
  warden.authenticate!(:scope => scope)
end