Class: TagsController

Inherits:
ApplicationController show all
Defined in:
app/controllers/tags_controller.rb

Instance Method Summary collapse

Methods included from Pictrails::CachingMethods

included

Instance Method Details

#showObject



5
6
7
8
9
10
# File 'app/controllers/tags_controller.rb', line 5

def show
  @tag = Tag.find_by_name params[:id]
  @tags = [@tag]
  @taggings = @tag.taggings.paginate :page => params[:page],
    :per_page => this_webapp.pictures_pagination
end