Please note that blog post is very old and the part mechanism has  
changed a lot since then.

Unfortunately the mechanism is not very well documented, but there is  
an example towards the end of the Agility tutorial

Tom

On 30 Jun 2009, at 02:39, blueHandTalking wrote:

>
> I have been following the AJAX, Hobo Style post by Tom.
>
> This has gotten me to the point of using form_remote_tag to work for
> entering a new user.
>
> Or, I can get the same form to update a partial but it will not enter
> the user into the db.
>
> I was following the example, and this is pretty much what it looks
> like:
>
> <% form_remote_tag  :url => "/users/signup", :method => :post do %>
>                               <input id="page_path" name="page_path" 
> type="hidden" value="users/
> signup" />
>                               <input type="hidden" name="part_page" 
> value="users/signup" />
>                               <input type="hidden" name="render[][part]" 
> value="archsignup" />
>                               <input type="hidden" name="render[][object]" 
> value="users/
> confirmation" />
>
> Actually not so sure how my transposed values work.
> This posts to db,  but the partial does not get written out.  In
> fairness, the example is passing an object in the last input line,
> whereas I am trying to pass a file.  Used variations of :update, but
> that just inserted the
> partial and did not post to the db. Since the example was using an
> object that was in scope, I am not sure
> how I make a similar call that is passing a file.
>
> So I am just trying to post with AJAX,  hand the part id (archsignup)
> to render so my div the form is
> in is replaced with a confirmation message that is in user/
> confirmation. Would like to get this working
> so I can get to the next step of replacing it with DRYML :)
>
> jet
>
>
> >


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