```ruby
class TagsController < ApplicationController

  resource_controller

  actions :index, :show

  index.wants.html { @title = "Tags" }
  show.failure.wants.html { rescue_404 }

  private
  def object
    # Need to use =find_by_param= since we don't use numeric ids for tags.
    Tag.find_by_param(params[:id])
  end

end
```

Make sure @events is set for TagsController
user
```ruby
class TagsController < ApplicationController

  resource_controller

  actions :index, :show

  index.wants.html { @title = "Tags" }
  show.wants.html { @events = TimelineEvent.recent_for_tag(@tag) }
  show.failure.wants.html { rescue_404 }

  private
  def object
    # Need to use =find_by_param= since we don't use numeric ids for tags.
    Tag.find_by_param(params[:id])
  end

end
```
assistant