Sha256: c5f0417702c1b3f558f941bc97ecd12e89401e25f33fb8c38cc7e42d7ed7189e

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

module Governor
  module Controllers
    module Methods
      def search
        set_resources model_class.search params[:query], :order => :created_at, :sort_mode => :desc
        @blank_msg = "I'm sorry, no articles match your search."
        render :action => 'index'
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
governor_thinking_sphinx-0.1.3 lib/governor/controllers/methods.rb
governor_thinking_sphinx-0.1.2 lib/governor/controllers/methods.rb
governor_thinking_sphinx-0.1.1 lib/governor/controllers/methods.rb
governor_thinking_sphinx-0.1.0 lib/governor/controllers/methods.rb