Class: Admin::PropertiesController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/properties_controller.rb

Instance Method Summary collapse

Instance Method Details

#filteredObject



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