Class: GithubAuthController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/github_auth_controller.rb

Instance Method Summary collapse

Instance Method Details

#callbackObject



2
3
4
5
# File 'app/controllers/github_auth_controller.rb', line 2

def callback
  authenticate!
  redirect_to session['return_to'] || root_url
end

#failedObject



7
8
9
10
# File 'app/controllers/github_auth_controller.rb', line 7

def failed
  render :inline =>
    "<center><%= image_tag 'rails-auth-github/securocat.png' %></center>"
end