Whilst trying to understand the intricacies of user authentication in
Hobo, I stumbled across this.

If your user model has last_login_at or login_count fields, Hobo will
automatically update them for you when the user logs in.

Another useful feature is that if you save the current location in the
users session by putting:

  before_filter :save_location

  private
    def save_location
      if current_user.guest?
        store_location
      end
    end

in application_controller.rb  and

  skip_filter :save_location

in users_controller.rb then Hobo will return the user to the last page
they were on before they logged in rather than returning them to the
home page.


It would be nice if comments were enabled in Hobo Cookbook so that we
could document these tips somewhere central so that they can be easily
found and hopefully incorporated into the next version of the
documentation.

Dean

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