Class: Admin::PropertiesController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Admin::PropertiesController
- Defined in:
- app/controllers/admin/properties_controller.rb
Instance Method Summary collapse
-
#filtered ⇒ Object
Looks like this action is unused.
Instance Method Details
#filtered ⇒ Object
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 |