```ruby
class TagsController < ApplicationController
  def index
  end

  def show
  end
end
```

Implement show posts for tag route & tags index ordered by number of posts
user
```ruby
class TagsController < ApplicationController
  def index
    @tags = Tag.most_popular
  end

  def show
    @tag = Tag.find_by(id: params[:id])
  end
end
```
assistant