config/routes.rb in lolita-menu-0.1.6 vs config/routes.rb in lolita-menu-0.1.7
- old
+ new
@@ -1,9 +1,17 @@
Rails.application.routes.draw do
- lolita_for :menus
- resources :menu_items, :only=>[:create,:destroy,:update] do
+
+ resources :menu_items, :only => :none do
collection do
- put :update_tree
get :autocomplete_menu_item_url
end
end
-end
\ No newline at end of file
+
+ resources :nested_trees, :only => [:create, :update, :destroy] do
+ collection do
+ put :update_tree
+ end
+ end
+
+ lolita_for :menu_items
+ lolita_for :menus, :visible => false
+end