Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: upgrade-coucha…
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (11 sloc) 0.379 kb
class TagsController < ApplicationController
def index
# Both the map and the reduce will be run.
@tags = Note.view(database_name, "notes/by_tag", :group => true)
end
def show
@tag = params[:id]
# Specifying :reduce => false causes only the map to be run.
@notes = Note.view(database_name, "notes/by_tag", :key => @tag, :reduce => false)
end
end
Jump to Line
Something went wrong with that request. Please try again.