```ruby
class TagsController < ApplicationController
  respond_to :json

  def index
    @tags = TagRepository.load_all
    # TODO: links: [next_page, prev_page]
    respond_with(:status => 'ok', :total => @tags.count, :from => 0, :to => @tags.count - 1,
                 :pagesize => @tags.count, :results => @tags)
  end

  def show
    @tag = TagRepository.load(params[:id])
    if @tag
      respond_with(:status=>'ok', :tag => @tag)
    else
      head :not_found
    end
  end

end
```

Move to Ruby 1.9 hash syntax
user
```ruby
class TagsController < ApplicationController
  respond_to :json

  def index
    @tags = TagRepository.load_all
    # TODO: links: [next_page, prev_page]
    respond_with(status: 'ok', total: @tags.count, from: 0, to: @tags.count - 1,
      pagesize: @tags.count, results: @tags)
  end

  def show
    @tag = TagRepository.load(params[:id])
    if @tag
      respond_with(status: 'ok', tag: @tag)
    else
      head :not_found
    end
  end

end
```
assistant