Class: Admin::PropertiesController

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

Instance Method Summary collapse

Instance Method Details

#filteredObject

Looks like this action is unused



4
5
6
7
8
9
# File 'app/controllers/admin/properties_controller.rb', line 4

def filtered
  @properties = Property.where('lower(name) LIKE ?', "%#{params[:q].mb_chars.downcase}%").order(:name)
  respond_with(@properties) do |format| 
    format.html { render :template => "admin/properties/filtered.html.erb", :layout => false } 
  end
end