```ruby
class TimeslotsController < SecuredController
  def show
    @timeslot = Timeslot.find(params[:id])
    render '/timeslots/show'
  end

  def update
    @timeslot = Timeslot.find_by(id: safe_params[:id])
    @timeslot.student_id = current_user.id
    if @timeslot.save
      render text: 'success'
    else
      @errors = @timeslot.errors.full_messages
      render text: @errors.to_s, status: 422
    end
  end

  def show
    @timeslot = Timeslot.find(params[:id])
    if @timeslot.student_id == current_user.id
      render template: "timeslots/student_appt_show"
    elsif @timeslot.tutor_id == current_user.id
      render template: "timeslots/tutor_appt_show"
    else
      render template: "timeslots/appt_show"
    end
  end

  private

  def safe_params
    params.permit(:start, :id)
  end
end
```

Fix render conditionals for timeslot show
user
```ruby
class TimeslotsController < SecuredController
  def show
    @timeslot = Timeslot.find(params[:id])
    render '/timeslots/show'
  end

  def update
    @timeslot = Timeslot.find_by(id: safe_params[:id])
    @timeslot.student_id = current_user.id
    if @timeslot.save
      render text: 'success'
    else
      @errors = @timeslot.errors.full_messages
      render text: @errors.to_s, status: 422
    end
  end

  def show
    @timeslot = Timeslot.find(params[:id])
    if @timeslot.student_id == current_user.id
      render "student_appt_show"
    elsif @timeslot.tutor_id == current_user.id
      render "tutor_appt_show"
    else
      render :appt_show
    end
  end

  private

  def safe_params
    params.permit(:start, :id)
  end
end
```
assistant