Sha256: 2f14aa92dd19c41125e3b4a40f07df4e33c190bb8d9efa7c493e9fc6212662ce
Contents?: true
Size: 245 Bytes
Versions: 1
Compression:
Stored size: 245 Bytes
Contents
module MyTags class TagsController < MyTags::ApplicationController respond_to :html, :xml, :json def list respond_with (params[:starts_with].blank? ? Tag.all : Tag.where("name LIKE '#{params[:starts_with]}%'")) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
my_tags-0.0.9 | app/controllers/my_tags/tags_controller.rb |