Controller Update

This commit is contained in:
Andreas Stephanides
2013-03-21 20:17:30 +01:00
parent 744fcfddb4
commit 7494e76701
3 changed files with 17 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ class ModulsController < ApplicationController
respond_to do |format|
if @modul.update_attributes(params[:modul])
format.html { redirect_to modul_path(@modul), notice: 'Modul was successfully updated.' }
format.html { redirect_to url_for(@modul), notice: 'Modul was successfully updated.' }
format.json { head :no_content }
else
format.html { render action: "edit" }