Class: TagsController

Inherits:
Ecrire::ThemeController show all
Defined in:
lib/ecrire/theme/template/controllers/tags_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user, #signed_in?, #url

Instance Method Details

#showObject



2
3
4
5
6
# File 'lib/ecrire/theme/template/controllers/tags_controller.rb', line 2

def show
  @tags = Tag.all
  @tag = Tag.find(params[:id])
  @posts = @tag.posts.includes(:titles).page(params[:page]).per(params[:per])
end