Mercurial > hg > soundsoftware-site
diff app/controllers/versions_controller.rb @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | cbb26bc654de |
line wrap: on
line diff
--- a/app/controllers/versions_controller.rb Fri Sep 24 14:06:04 2010 +0100 +++ b/app/controllers/versions_controller.rb Fri Nov 19 13:24:41 2010 +0000 @@ -109,6 +109,10 @@ if @version.update_attributes(attributes) flash[:notice] = l(:notice_successful_update) redirect_to :controller => 'projects', :action => 'settings', :tab => 'versions', :id => @project + else + respond_to do |format| + format.html { render :action => 'edit' } + end end end end