You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/app/controllers/users/experience_records_controll...

10 lines
295 B

6 years ago
class Users::ExperienceRecordsController < Users::BaseController
before_action :private_user_resources!
def show
experiences = observed_user.experiences.where('score > 0')
@count = experiences.count
@experience_records = paginate(experiences.order(created_at: :desc))
end
end