diff options
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/menu_items_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/users_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/menu_items_controller.rb b/app/controllers/menu_items_controller.rb index 1b1eb59..314d1ea 100644 --- a/app/controllers/menu_items_controller.rb +++ b/app/controllers/menu_items_controller.rb | |||
| @@ -14,7 +14,7 @@ class MenuItemsController < ApplicationController | |||
| 14 | end | 14 | end |
| 15 | 15 | ||
| 16 | def new | 16 | def new |
| 17 | @menu_item = MenuItem.new menu_item_params | 17 | @menu_item = MenuItem.new |
| 18 | end | 18 | end |
| 19 | 19 | ||
| 20 | def create | 20 | def create |
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index f01691f..6572b7a 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb | |||
| @@ -15,7 +15,7 @@ class UsersController < ApplicationController | |||
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | def new | 17 | def new |
| 18 | @user = User.new | 18 | @user = User.new(admin: params[:admin].present?) |
| 19 | end | 19 | end |
| 20 | 20 | ||
| 21 | def create | 21 | def create |
