app/helpers/users_helper.rb
# Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
def bs_class_for_user_status(user)
    return 'label-warning' if user.inivited?
    return 'label-success' if user.active?
    return 'label-danger' if user.suspended?
  end
def bs_class_for_user_status ( user ) return 'label-warning' if user . inivited? return 'label-success' if user . active? return 'label-danger' if user . suspended? end
Apply a Bootstrap label class for each status
Apply a Bootstrap label class for each status
user
<not_specific>