Skip to content

Instantly share code, notes, and snippets.

@DBA
Created February 2, 2010 19:27
Show Gist options
  • Save DBA/292936 to your computer and use it in GitHub Desktop.
Save DBA/292936 to your computer and use it in GitHub Desktop.
[71, 80] in /Users/dba/work/gnomeslab.com/products/playergadget/site/vendor/plugins/authlogic_openid/lib/authlogic_openid/acts_as_authentic.rb
71 return false if perform_validation && authenticate_with_openid? && !authenticate_with_openid
72 return false if new_record? && (!openid_complete? && @openid_error.nil?)
73
74 result = super
75 debugger
=> 76 yield(result) unless block.nil?
77 result
78 end
79
80 private
(rdb:7) step
/Users/dba/work/gnomeslab.com/products/playergadget/site/app/controllers/users_controller.rb:19
if result
(rdb:7) list
[14, 23] in /Users/dba/work/gnomeslab.com/products/playergadget/site/app/controllers/users_controller.rb
14 end
15
16 def create
17 @user = User.new(params[:user])
18 @user.save do |result|
=> 19 if result
20 flash[:notice] = "Registration successfull."
21 redirect_to root_url
22 else
23 render :action => 'new'
(rdb:7) result
false
(rdb:7) @user.errors.on(:openid_identifier)
"had the following error: Sorry, the OpenID server couldn't be found"
(rdb:7) next
/Users/dba/work/gnomeslab.com/products/playergadget/site/app/controllers/users_controller.rb:23
render :action => 'new'
(rdb:7) list
[18, 27] in /Users/dba/work/gnomeslab.com/products/playergadget/site/app/controllers/users_controller.rb
18 @user.save do |result|
19 if result
20 flash[:notice] = "Registration successfull."
21 redirect_to root_url
22 else
=> 23 render :action => 'new'
24 end
25 end
26 end
27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment