2016-11-16 00:56:29 +09:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-11-05 23:20:05 +09:00
|
|
|
class TagsController < ApplicationController
|
2016-11-06 01:44:14 +09:00
|
|
|
layout 'public'
|
|
|
|
|
2016-11-05 23:20:05 +09:00
|
|
|
def show
|
2016-12-05 00:56:45 +09:00
|
|
|
@tag = Tag.find_by!(name: params[:id].downcase)
|
|
|
|
@statuses = @tag.statuses.order('id desc').paginate_by_max_id(20, params[:max_id])
|
|
|
|
@statuses = cache_collection(@statuses, Status)
|
2016-11-05 23:20:05 +09:00
|
|
|
end
|
|
|
|
end
|