Congratulations! I'm glad you made it work.

The page_path escaping issue is interesting, I've never seen it before.
Thanks for sharing the tip.

Regards,
Ignacio

El 27/08/13 20:17, Parker Morse escribió:
> On Tue, Aug 27, 2013 at 7:39 AM, Ignacio Huerta <[email protected]
> <mailto:[email protected]>> wrote:
> 
>     >
>     > The frustration level is getting pretty high here. This ought to be a
>     > simple form update, and I've been working on it for three days now.
>     >
> 
>     Take it easy ;). I'm afraid that you are using a Hobo version there is
>     no specific tutorial for. The old tutorials where for Hobo 1.0 (with
>     Prototype!!) and the new one for Hobo 2.0. So you are in limbo.
> 
> 
> True. I've mentioned before that we've hit roadblocks migrating to Hobo 2.0.
> 
>  
> 
>     But not to worry, I've dug a Hobo 1.3 app and I have tried to build a
>     similar example. Here's a webm video demo:
>     http://ubuntuone.com/346FWoYlhbIVEFPctz3A3R
> 
> 
> Hallelujah, this one works. Well, with some tweaking, as follows:
> 
> 1. Because I'm working with new_for_page, I renamed the dryml file and
> controller action accordingly.
> 1a. The AJAX script also needed to be tweaked to send the request to
> new_for_page.
> 2. I had to do some wrangling to figure out how to label the custom
> fields, just because I hadn't seen those before and didn't understand
> how they'd work at first. Likewise, properly naming the parts took some
> trial and error.
> 3.  The real hair-tearer was that Hobo was including a :page_path param
> which was URL-escaped, and something happening *within*
> hobo_ajax_response was choking on that param (the output was a 404
> error). On a hunch, I added a line to the controller to unescape
> params[:page_path], and that made it work.
> 
> (That line, by the way, was this:
> 
>     if params[:page_path]
>       params[:page_path] = CGI.unescape(params[:page_path])
>     end
> 
> ...just in case someone else runs into this problem.)
> 
> Finally I can move on! Thank you, Ignacio, for sticking with this long
> after I was ready to pitch it myself.
> 
> pjm

-- 
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to