Handling Errors + Attachment_Fu

Hi people, with the attachment_fu plugin, how can i handle things when errors occur with an image upload, so the user doesn't see a blank screen on the production site.

?

Also in general how should I be handling form submit errors, I'm using...

  def signup     return unless request.post?     begin       ...       #redirect to homepage if all ok       redirect_back_or_default(:action => 'profile')

    rescue ActiveRecord::RecordInvalid       #if not, redirect to signup page with message       flash[:notice] = "Sorry, something went wrong"       render :action => 'signup'     end   end

Did some research, found some decent tutorials...

http://wiki.rubyonrails.com/rails/pages/HandlingPreControllerErrors

http://wiki.rubyonrails.com/rails/pages/HowtoSendEmailWhenRailsThrowsAnException

http://wiki.rubyonrails.org/rails/pages/HowtoConfigureTheErrorPageForYourRailsApp

going to implement the email-on-error one, would help out a lot when things don't go completely to plan.