Thanks, that fixed part of it. Looks like the tutorial needs to be
updated.
One other problem seems to be in the following:
create :signup, :available_to => "Guest",
:params =>
[:name, :email_address, :password, :password_confirmation
:become => :inactive, :new_key => true do
UserMailer.deliver_activation(self, lifecycle.key) if user.blank?
end
why is the 'if user.blank?' there and what should it actually be? As
is, it throws the same unknown local variable/method error.
On Oct 29, 7:49 am, Matt Jones <[email protected]> wrote:
> On Oct 29, 2009, at 2:12 AM, Nathan Henderson wrote:
>
>
>
> > I've been following the Agility tutorial step-by-step, and I've gotten
> > hung up at the user activation step.
>
> > After adding the Agility tutorial User Activation code to the user
> > model and the do_signup method to the users_controller, I get the
> > following error when attempting to add a new user: "undefined local
> > variable or method `errors' for #<UsersController:0x105dff4c0>"
>
> There is a typo - much like the following line, the errors.blank? line
> should be this.errors.blank?
>
> --Matt Jones
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---