I have an in_place_editor field, and I'm trying to add an "Escape"
incase someone'll add an non existent product. I've tried:

def update
  begin
    rescue ActiveRecord::RecordNotFound
        logger.error("Trying to add invalid product -
#{params[:product_mkt]}")
        redirect_to :action => :index
        flash[:notice] = "we cant find the product in our database"
  else
    hobo_ajax_response
  end
end

without much luck. any ideas?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en.

Reply via email to