app/controllers/phcscriptcdn/scriptcdn/scripturls_controller.rb in phcscriptcdn-1.0.0 vs app/controllers/phcscriptcdn/scriptcdn/scripturls_controller.rb in phcscriptcdn-1.0.1
- old
+ new
@@ -37,11 +37,11 @@
def create
@scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
@scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.create(scriptcdn_scripturl_params)
respond_to do |format|
if @scriptcdn_scripturl.save
- format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Created.' }
+ format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Created.' }
format.json { render action: 'show', status: :created, location: @scriptcdn_scripturl }
else
format.html { render action: 'new' }
format.json { render json: @scriptcdn_scripturl.errors, status: :unprocessable_entity }
end
@@ -50,11 +50,11 @@
# PATCH/PUT Scriptcdn_script URL
def update
respond_to do |format|
if @scriptcdn_scripturl.update(scriptcdn_scripturl_params)
- format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Updated.' }
+ format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Updated.' }
format.json { head :no_content }
else
format.html { render action: 'edit' }
format.json { render json: @scriptcdn_scripturl.errors, status: :unprocessable_entity }
end
@@ -65,10 +65,10 @@
def destroy
@scriptcdn_scriptversion = Scriptcdn::Scriptversion.find(params[:scriptversion_id])
@scriptcdn_scripturl = @scriptcdn_scriptversion.scripturls.find(params[:id])
@scriptcdn_scripturl.destroy
respond_to do |format|
- format.html { redirect_to scriptcdn_script_scripturls_path, notice: 'Script URL was Successfully Deleted.' }
+ format.html { redirect_to scriptcdn_scriptversion_scripturls_path, notice: 'Script URL was Successfully Deleted.' }
format.json { head :no_content }
end
end
private
\ No newline at end of file