Just in case anyone else comes across this......

I had my respond_to do |format| block outside hobo_update.
code now reads:

       hobo_update(params) do
          respond_to do |format|
            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
        end

On Dec 10, 5:31 pm, adamski <[email protected]> wrote:
> 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