Class: Kawara::TagsController

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

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
# File 'app/controllers/kawara/tags_controller.rb', line 5

def index
  @tags = Kawara::Tag.all
end

#showObject



9
10
11
12
# File 'app/controllers/kawara/tags_controller.rb', line 9

def show
  tag= Kawara::Tag.friendly.find(params[:id])
  @articles = tag.articles_latest
end