rails scaffold error partial

A common idiom is to make a shared folder, put a partial called _error.html.erb in it. then the _form partial will have render ‘shared/error’, :object => @foo. I think it would be wise to extract the error code from the form partial to the error partial to clean up the form when doing a rails scaffold command. Does this seem like it would be a good idea?