Modificando os esquemas de cores e alguns detalhes na interface

This commit is contained in:
2008-03-06 19:54:06 -03:00
parent c206a678bd
commit 304a41f610
9 changed files with 77 additions and 50 deletions

View File

@@ -41,7 +41,7 @@ class ApplicationController < ActionController::Base
# Erro de validacao
elsif exception.is_a?(ActiveRecord::RecordInvalid)
respond_to do |format|
format.html { render :action => (exception.record.new_record? ? 'new' : 'edit') }
format.html { render :action => (params[:from].nil? ? (exception.record.new_record? ? 'new' : 'edit') : params[:from]) }
format.xml { render :xml => exception.record.errors, :status => :unprocessable_entity }
end