```ruby
class TopController < ApplicationController
  skip_before_action :authenticate_user!
  def index
    if user_signed_in?
      redirect_to users_path
    end
    @users = @q.result.page params[:page]
  end
end
```

Hide inactive user from top member list
user
```ruby
class TopController < ApplicationController
  skip_before_action :authenticate_user!
  def index
    if user_signed_in?
      redirect_to users_path
    end
    @users = @q.result.active.page params[:page]
  end
end
```
assistant