Permalink
Browse files

fixed rails 3beta4 bug, added github support

  • Loading branch information...
1 parent e58b370 commit 18fbc962ae1106265617717b3ee2c48d9f1114ec @lancejpollard committed Jul 7, 2010
View
BIN .DS_Store
Binary file not shown.
@@ -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?
@@ -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
@@ -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
@@ -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}
@@ -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}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 18fbc96

Please sign in to comment.