Added an error message when a locked rate is tried to be deleted. #1919

This commit is contained in:
Eric Davis
2009-01-20 11:33:08 -08:00
parent dc8dd4abe4
commit 158969e359
2 changed files with 9 additions and 0 deletions

View File

@@ -109,6 +109,7 @@ class RatesController < ApplicationController
respond_to do |format|
format.html {
flash[:error] = "Rate is locked and cannot be deleted" if @rate.locked?
if params[:back_url] && !params[:back_url].blank?
redirect_to(params[:back_url])
else