You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: