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
spree-0.8.4 app/controllers/countries_controller.rb
spree-0.8.5 app/controllers/countries_controller.rb
spree-0.4.0 app/controllers/countries_controller.rb
spree-0.4.1 app/controllers/countries_controller.rb
spree-0.5.0 app/controllers/countries_controller.rb
spree-0.5.1 app/controllers/countries_controller.rb
spree-0.6.0 app/controllers/countries_controller.rb
spree-0.7.0 app/controllers/countries_controller.rb
spree-0.7.1 app/controllers/countries_controller.rb
spree-0.8.0 app/controllers/countries_controller.rb
spree-0.8.1 app/controllers/countries_controller.rb
spree-0.8.2 app/controllers/countries_controller.rb
spree-0.8.3 app/controllers/countries_controller.rb