It looks like it should be 'if not self.blank?' At least that seems to work. pat
On Nov 5, 8:59 am, koicat <[email protected]> wrote: > In the immortal word(s) of Homer Simpson.... duh! > That's a head-slapper. > Thanks, Matt! > > On Nov 4, 2:06 pm, Matt Jones <[email protected]> wrote: > > > On Nov 4, 2009, at 4:46 PM, koicat wrote: > > > > Am having same issues. > > > Took care of 'this.user.errors' but getting unknown local variable/ > > > method error on > > > > 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 > > > > even if I change it to 'this.user.blank'. Am still beginner with > > > Ruby, Rails, and Hobo and am drawing blanks on this one. > > > During the execution of the callback, the user is 'self'. That's what > > you see being passed to deliver_activation. > > > --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 -~----------~----~----~----~------~----~------~--~---
