I've got a hobo_update block which is sending json back to an ExtJS
EditableGrid control. I am getting DoubleRender errors, I must have
things slightly wrong but not sure how.

here is my code:

        hobo_update( params ) do
          if valid?
            format.ext_json { render :json => find_entity.to_ext_json
(:success => true) }
          else
            logger.debug("update failed!")
            format.ext_json { render :json => find_entity.to_ext_json
(:success => false) }
          end
        end

its updating fine, its just the response that generates an error.



--~--~---------~--~----~------------~-------~--~----~
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