Mercurial > hg > soundsoftware-site
diff app/controllers/.svn/text-base/versions_controller.rb.svn-base @ 41:7f0e922c8982 luisf
merged with new version from trunk
author | luisf |
---|---|
date | Fri, 19 Nov 2010 14:45:28 +0000 |
parents | 94944d00e43c |
children |
line wrap: on
line diff
--- a/app/controllers/.svn/text-base/versions_controller.rb.svn-base Thu Nov 18 17:50:11 2010 +0000 +++ b/app/controllers/.svn/text-base/versions_controller.rb.svn-base Fri Nov 19 14:45:28 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