if @group.save
redirect_to [:admin, @group], notice: 'Group was successfully created.'
else
- render action: "new"
+ render "new"
end
end
if @group.update_attributes(group_params)
redirect_to [:admin, @group], notice: 'Group was successfully updated.'
else
- render action: "edit"
+ render "edit"
end
end
format.html { redirect_to [:admin, @admin_user], notice: 'User was successfully created.' }
format.json { render json: @admin_user, status: :created, location: @admin_user }
else
- format.html { render action: "new" }
+ format.html { render "new" }
format.json { render json: @admin_user.errors, status: :unprocessable_entity }
end
end
else
# restore username to keep form action url.
admin_user.username = params[:id]
- format.html { render action: "edit" }
+ format.html { render "edit" }
format.json { render json: admin_user.errors, status: :unprocessable_entity }
end
end
@merge_request.reload_code
redirect_to [@project, @merge_request], notice: 'Merge request was successfully created.'
else
- render action: "new"
+ render "new"
end
end
@merge_request.mark_as_unchecked
redirect_to [@project, @merge_request], notice: 'Merge request was successfully updated.'
else
- render action: "edit"
+ render "edit"
end
end
if @project.saved?
redirect_to @project
else
- render action: "new"
+ render "new"
end
end
format.js
format.html { redirect_to edit_project_path(@project), notice: 'Project was successfully updated.' }
format.js
else
- format.html { render action: "edit", layout: "project_settings" }
+ format.html { render "edit", layout: "project_settings" }
format.js
end
end
redirect_to(@forked_project, notice: 'Project was successfully forked.')
else
@title = 'Fork project'
- render action: "fork"
+ render "fork"
end
end
format.js