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

Version Path
tolk-1.7.0 app/controllers/tolk/searches_controller.rb
tolk-1.3.13 app/controllers/tolk/searches_controller.rb
tolk-1.6.0 app/controllers/tolk/searches_controller.rb
tolk-1.5.2 app/controllers/tolk/searches_controller.rb
tolk-1.6.0.alpha1 app/controllers/tolk/searches_controller.rb
tolk-1.5.1 app/controllers/tolk/searches_controller.rb
tolk-1.5.0 app/controllers/tolk/searches_controller.rb
tolk-1.4.00 app/controllers/tolk/searches_controller.rb
tolk-1.3.12 app/controllers/tolk/searches_controller.rb
tolk-1.3.11 app/controllers/tolk/searches_controller.rb
tolk-1.3.10 app/controllers/tolk/searches_controller.rb
tolk-1.3.9 app/controllers/tolk/searches_controller.rb
tolk-1.3.8 app/controllers/tolk/searches_controller.rb
tolk-1.3.7 app/controllers/tolk/searches_controller.rb
tolk-1.3.6 app/controllers/tolk/searches_controller.rb
tolk-1.3.5 app/controllers/tolk/searches_controller.rb