Sha256: 6fa447f800a5af209d417bea6f22e0f7fe80707bd53ae3c79c29e78d0fffac40

Contents?: true

Size: 259 Bytes

Versions: 33

Compression:

Stored size: 259 Bytes

Contents

class CountriesController < Spree::BaseController
  resource_controller
  
  index.response do |wants|
    wants.html
    wants.js do
      @countries = Country.find(:all, :conditions => ['lower(name) LIKE ?', "%#{params[:q].downcase}%"])
    end
  end
  
end

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
kdmny-spree-0.0.1 app/controllers/countries_controller.rb
spree-0.11.4 app/controllers/countries_controller.rb
spree-0.11.3 app/controllers/countries_controller.rb
spree_core-0.30.2 app/controllers/countries_controller.rb
spree_core-0.30.1 app/controllers/countries_controller.rb
spree_core-0.30.0 app/controllers/countries_controller.rb
spree-0.11.2 app/controllers/countries_controller.rb
spree-0.11.1 app/controllers/countries_controller.rb
spree_core-0.30.0.beta1 app/controllers/countries_controller.rb
spree-0.11.0 app/controllers/countries_controller.rb
spree-0.10.2 app/controllers/countries_controller.rb
spree-0.10.1 app/controllers/countries_controller.rb
spree-0.10.0 app/controllers/countries_controller.rb
spree-0.10.0.beta app/controllers/countries_controller.rb
spree-enriquez-0.9.4 app/controllers/countries_controller.rb
spree-0.9.4 app/controllers/countries_controller.rb
spree-0.9.3 app/controllers/countries_controller.rb
spree-0.9.2 app/controllers/countries_controller.rb
spree-0.9.1 app/controllers/countries_controller.rb
spree-0.9.0 app/controllers/countries_controller.rb