app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb in phcscriptcdnpro-1.7.8 vs app/controllers/phcscriptcdnpro/scriptcdn/mains_controller.rb in phcscriptcdnpro-1.7.9

- old
+ new

@@ -28,19 +28,19 @@ # POST Script CDN def create @scriptcdn_main = Scriptcdn::Main.new(scriptcdn_main_params) if @scriptcdn_main.save - redirect_to @scriptcdn_main, notice: 'Script was successfully created.' + redirect_to scriptcdn_mains_url, notice: 'Script was successfully created.' else render :new end end # PATCH/PUT Script def update if @scriptcdn_main.update(scriptcdn_main_params) - redirect_to @scriptcdn_main, notice: 'Script was successfully updated.' + redirect_to scriptcdn_mains_url, notice: 'Script was successfully updated.' else render :edit end end