Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

block_given? wrong in save #10

Open
aac opened this issue Feb 6, 2010 · 2 comments
Open

block_given? wrong in save #10

aac opened this issue Feb 6, 2010 · 2 comments

Comments

@aac
Copy link

aac commented Feb 6, 2010

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
Copy link
Author

aac commented Feb 6, 2010

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#

@jaycode
Copy link

jaycode commented Sep 4, 2010

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...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants