Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed rails 3beta4 bug, added github support

  • Loading branch information...
commit 18fbc962ae1106265617717b3ee2c48d9f1114ec 1 parent e58b370
@lancejpollard authored
View
BIN  .DS_Store
Binary file not shown
View
7 app/controllers/application_controller.rb
@@ -3,13 +3,6 @@ class ApplicationController < ActionController::Base
layout 'application'
helper :all
helper_method :current_user_session, :current_user
- before_filter :disallow
-
- def disallow
- if request.referrer.to_s =~ /tocchini/i
- raise "Disallowed"
- end
- end
def login_required
if current_user.nil?
View
2  app/controllers/users_controller.rb
@@ -22,6 +22,7 @@ def create
def show
puts "SESSION: #{session.inspect}"
+ puts @current_user.access_tokens.inspect
@user = @current_user
@profile = @user.profile
end
@@ -38,6 +39,7 @@ def update
flash[:notice] = "Account updated!"
redirect_to profile_url(@user)
else
+ raise @user.errors.inspect
render :action => :edit
end
end
View
2  app/views/user_sessions/new.html.haml
@@ -7,7 +7,7 @@
%legend Click your Oauth or OpenID provider
.oauth_providers
%ul
- - %w(google facebook twitter yahoo myspace linked_in).each do |name|
+ - %w(google facebook twitter yahoo myspace github).each do |name|
%li.oauth_provider
= image_tag "/images/icons/#{name}.png"
= radio_button_tag :oauth_provider, name
View
2  app/views/users/edit.html.haml
@@ -5,7 +5,7 @@
%legend Add another Oauth or OpenID provider.
.oauth_providers
%ul
- - %w(google facebook twitter yahoo myspace linked_in).each do |name|
+ - %w(google facebook twitter yahoo myspace github).each do |name|
%li.oauth_provider
%img{:src => "/images/icons/#{name}.png"}
%input{:type => :radio, :id => "#{name}_oauth_provider", :name => :oauth_provider, :value => name}
View
2  app/views/users/new.html.haml
@@ -6,7 +6,7 @@
%legend Click your Oauth or OpenID provider.
.oauth_providers
%ul
- - %w(google facebook twitter yahoo myspace linked_in).each do |name|
+ - %w(google facebook twitter yahoo myspace github).each do |name|
%li.oauth_provider
%img{:src => "/images/icons/#{name}.png"}
%input{:type => :radio, :id => "#{name}_oauth_provider", :name => :oauth_provider, :value => name}
View
BIN  public/images/icons/github.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Please sign in to comment.
Something went wrong with that request. Please try again.