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