app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb in phcscriptcdnpro-1.12.0 vs app/controllers/phcscriptcdnpro/scriptcdn/informations_controller.rb in phcscriptcdnpro-1.12.1
- old
+ new
@@ -29,30 +29,30 @@
# POST Script Information
def create
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
@scriptcdn_information = @scriptcdn_main.informations.create(scriptcdn_information_params)
if @scriptcdn_information.save
- redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully created.'
+ redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully created.'
else
render :new
end
end
# PATCH/PUT Script Information
def update
if @scriptcdn_information.update(scriptcdn_information_params)
- redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully updated.'
+ redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully updated.'
else
render :edit
end
end
# DELETE Script Information
def destroy
@scriptcdn_main = Scriptcdn::Main.find(params[:main_id])
@scriptcdn_information = @scriptcdn_main.informations.find(params[:id])
@scriptcdn_information.destroy
- redirect_to scriptcdn_main_informations_url, notice: 'Information was successfully destroyed.'
+ redirect_to scriptcdn_main_informations_path, notice: 'Information was successfully destroyed.'
end
private
# Common Callbacks