Class: Admin::PropertiesController
- Defined in:
- app/controllers/admin/properties_controller.rb
Instance Method Summary collapse
Instance Method Details
#filtered ⇒ Object
7 8 9 10 |
# File 'app/controllers/admin/properties_controller.rb', line 7 def filtered @properties = Property.find(:all, :conditions => ['lower(name) LIKE ?', "%#{params[:q].downcase}%"], :order => :name) render :template => "admin/properties/filtered.html.erb", :layout => false end |