authlogic_oauth
authlogic_oauth copied to clipboard
block_given? wrong in save
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
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#
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...?