authlogic_oauth icon indicating copy to clipboard operation
authlogic_oauth copied to clipboard

block_given? wrong in save

Open aac opened this issue 15 years ago • 2 comments
trafficstars

I use the following code in my create action in the users controller. In the debugger, block_given? returns false, leading to problems. Is this expected?

@user.save true do |result|
  if result
    flash[:notice] = "Authorization successful!"
    redirect_back_or_default account_url
  else
    render :action => :new
  end
end

aac avatar Feb 06 '10 06:02 aac

Uh, this was a red herring. There's a better description of my struggles here: http://groups.google.com/group/authlogic/browse_thread/thread/25e420f15c5eea78#

aac avatar Feb 06 '10 07:02 aac

I changed them to block.blank? but until now I haven't got this plugin to work. Sigh... why do they keep posting non-working plugins...?

jaycode avatar Sep 04 '10 19:09 jaycode