Hi kevinpfromnm

what I have done is automatically login and redirect to the front page
after clicking on the user activation (link on the email).
The key is the "self.current_user = this" line on the activation
lyfecycle.

I'm still using Hobo 1.0.1 in my production server.

----------
class UsersController < ApplicationController

  hobo_user_controller

  auto_actions :all, :except => [ :index, :new, :create ]

( ...)

  def activate
     do_transition_action :activate do
       if valid?
         self.current_user = this
         flash[:notice] = "Your account was successfully activated"
         redirect_to "/front"
       end
     end
  end

(...)

end

-----------

Best regards,
eddie.

On Apr 2, 5:34 pm, kevinpfromnm <[email protected]> wrote:
> This seems like it should be pretty common requirement but haven't been
> able to find an example.  While I'm sure I could work it out, figured give
> it a shot in case someone had an easy way to accomplish this.  And to also
> make a post that's hopefully easier to find via search.

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

Reply via email to