Couple things: 1. you're getting the undefined method because existing users don't have the pass_expires field defined 2. you need to handle the guest user (which doesn't automatically have the same methods as normal user) 3. you probably want to do a redirect_to inside your if but that might be what you're doing with that hobo.actions.account (which I haven't seen before) 4. you need to exclude the pass_expires method from the change password page and the do password change (the post method) 5. I'd move the update of the pass_expires inside the model as an after_save callback or better still, adding to the change password lifecycle method. err, wait... changing password isn't a lifecycle transition?? still, the after_save callback will work.
-- 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.
