module Merb module GlobalHelpers def logged_in? !session[:user_id].nil? end def error_messages(obj) if obj.errors.empty? nil else "