class Api::V1::TagsController < ApplicationController
  def index
    @tags = Tag.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    render json: @tags.map(&:name)
  end
end

class Api::V1::TagsController < ApplicationController
  def index
    @tags = Tag.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    @platforms = SupportedPlatform.where("name ILIKE :search", search: "#{params['q']}%").limit(5).all
    render json: @tags.map(&:name) + @platforms.map(&:name)
  end
end

Return platform names alongside tags
Return platform names alongside tags
