use flash messages to display errors
flash[:notice] = e.message