Fixed some wrong links in admin-startpage and bugs in ordergroup-model.
This commit is contained in:
parent
eedee9f070
commit
7f09bb55e4
5 changed files with 50 additions and 55 deletions
|
|
@ -35,7 +35,7 @@ class Admin::OrdergroupsController < ApplicationController
|
|||
end
|
||||
|
||||
def create
|
||||
@ordergroup = Ordergroup.new(params[:Ordergroup])
|
||||
@ordergroup = Ordergroup.new(params[:ordergroup])
|
||||
|
||||
if @ordergroup.save
|
||||
flash[:notice] = 'Ordergroup was successfully created.'
|
||||
|
|
@ -48,7 +48,7 @@ class Admin::OrdergroupsController < ApplicationController
|
|||
def update
|
||||
@ordergroup = Ordergroup.find(params[:id])
|
||||
|
||||
if @ordergroup.update_attributes(params[:Ordergroup])
|
||||
if @ordergroup.update_attributes(params[:ordergroup])
|
||||
flash[:notice] = 'Ordergroup was successfully updated.'
|
||||
redirect_to([:admin, @ordergroup])
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue