Sha256: 3cae783e9dd47bcf9a6747d3b071ce8ccc2249bbf166874c4f4acc22240a7e02
Contents?: true
Size: 368 Bytes
Versions: 16
Compression:
Stored size: 368 Bytes
Contents
module Tolk class SearchesController < Tolk::ApplicationController before_filter :find_locale def show @phrases = @locale.search_phrases(params[:q], params[:scope].to_sym, params[:k], params[:page]) end private def find_locale @locale = Tolk::Locale.where('UPPER(name) = UPPER(?)', params[:tolk_locale]).first! end end end
Version data entries
16 entries across 16 versions & 1 rubygems