about summary refs log tree commit diff stats
path: root/data/maps/daedalus/rooms/Outside House.txtpb
diff options
context:
space:
mode:
Diffstat (limited to 'data/maps/daedalus/rooms/Outside House.txtpb')
0 files changed, 0 insertions, 0 deletions
Star Rauchenberger <fefferburbia@gmail.com> 2023-10-13 11:51:47 -0400 Tag links' href='/thoughts/commit/app/controllers/tags_controller.rb?id=0333f3e258026696af265f777f862e612bab1bd7'>0333f3e ^
5be9480 ^








1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

                                            



                           
          
                             
                                                                                                                                          

     








                                                              
class TagsController < ApplicationController

  def index
    @tags = Blog.tag_counts
  end

  def show
    @tag_name = params[:name]
    @blogs = Blog.tagged_with(params[:name]).where(published: true).order(published_at: :desc).paginate(page: params[:page], per_page: 10)
  end

  def suggest
    @tags = ActsAsTaggableOn::Tag.pluck(:name).select do |tag|
      tag.starts_with? params[:term]
    end

    render json: @tags
  end

end