Sha256: 01d2ec7c77562597dc7a5b124be099db9f57a22f1a89f49e084f6f843a8c8f79

Contents?: true

Size: 291 Bytes

Versions: 15

Compression:

Stored size: 291 Bytes

Contents

class Admin::BackendController < AdminAreaController

  def search
    @query = params[:query] || ''
    unless @query.blank?
      @results = Content.find_with_ferret @query
    end
  end

  def show
    @content = Content.find(params[:id])
    render :template => 'content/show'
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
cehoffman-acts_as_ferret-0.4.4 doc/demo/app/controllers/admin/backend_controller.rb
jkraemer-acts_as_ferret-0.4.4 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.5.4 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.5.3 doc/demo/app/controllers/admin/backend_controller.rb
watson-acts_as_ferret-0.4.8.2 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.5.2 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.8.2 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.8.1 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.5.1 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.5 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.8.rails3 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.8 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.7 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.6 doc/demo/app/controllers/admin/backend_controller.rb
acts_as_ferret-0.4.4 doc/demo/app/controllers/admin/backend_controller.rb