Class: TagsController
- Inherits:
-
Ecrire::ThemeController
- Object
- ActionController::Base
- ApplicationController
- Ecrire::ThemeController
- TagsController
- 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
#show ⇒ Object
2 3 4 5 6 |
# File 'lib/ecrire/theme/template/controllers/tags_controller.rb', line 2 def show = Tag.all @tag = Tag.find(params[:id]) @posts = @tag.posts.includes(:titles).page(params[:page]).per(params[:per]) end |