Skip to content

Instantly share code, notes, and snippets.

@scottraio
Created May 31, 2011 01:56
Show Gist options
  • Save scottraio/999752 to your computer and use it in GitHub Desktop.
Save scottraio/999752 to your computer and use it in GitHub Desktop.
Devise undefined method gsub when failing out
module Devise
class FailureApp < ActionController::Metal
private
def redirect_url
if skip_format?
new_user_session_path
else
new_user_session_path(:format => request_format)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment