summaryrefslogtreecommitdiff
path: root/app/controllers/menu_items_controller.rb
diff options
context:
space:
mode:
authorhukl <contact@smyck.org>2009-08-08 22:38:48 +0200
committerhukl <contact@smyck.org>2009-08-08 22:38:48 +0200
commit46117a9f103e2d547be2a47724e872b3f57ce983 (patch)
tree3360a066676ecf776f62212912abcec4965bdf27 /app/controllers/menu_items_controller.rb
parent4f249507da36f219b208f88e4dea5a5cd90ca254 (diff)
lots of new code to manage menu items - harder than expected :/
Diffstat (limited to 'app/controllers/menu_items_controller.rb')
-rw-r--r--app/controllers/menu_items_controller.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/controllers/menu_items_controller.rb b/app/controllers/menu_items_controller.rb
index 1ac3ddb..d6f0252 100644
--- a/app/controllers/menu_items_controller.rb
+++ b/app/controllers/menu_items_controller.rb
@@ -13,6 +13,17 @@ class MenuItemsController < ApplicationController
13 end 13 end
14 14
15 def create 15 def create
16 respond_to do |format|
17 format.html {}
18
19 format.js do
20 MenuItem.create params[:menu_item]
21 end
22
23
24 end
25
26
16 end 27 end
17 28
18 def edit 29 def edit