Class: Dust::SortableController
- Inherits:
-
AuthenticationController
- Object
- ActionController::Base
- AuthenticationController
- Dust::SortableController
- Defined in:
- app/controllers/dust/sortable_controller.rb
Instance Method Summary collapse
Methods inherited from AuthenticationController
#not_authenticated, #permission_denied, #try_return_to_previous_page
Instance Method Details
#sort ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'app/controllers/dust/sortable_controller.rb', line 4 def sort begin @menu_sort = Dust::Sort.new(params[:list], params[:class_name]) rescue ActiveRecord::RecordNotFound => e not_found = true flash[:error] = "Sorting Failed | #{e}" else flash[:notice] = "Sort Successfull!" end end |