On Mar 17, 4:29 am, geoffd123 <[email protected]> wrote:
> Hi Bryan
>
> I have been trying the new version from the test / github posting and
> it still does not work.

When did you grab it?  I updated several times yesterday.

>
> The editor appears, if I cancel it disappears and stays at the same
> place.
>
> If I save it, then it refreshes the index page and takes me back to
> page 1, the record I was editing was on page 108.

A page refresh usually indicates that the javascript failed and the
event bubbled up.  Does firebug display any errors?

>
> Is this how it is supposed to work?

No.

I placed a working example in agility, on the test-contrib branch.
Check it out:  
http://github.com/tablatom/agility/blob/contrib-test/app/views/projects/belongs_to_slide_editor_test.dryml
and try and reproduce your problems there.

>
> Also if I add a delete button like this:
>
>             <td class='controls'>
>               <belongs-to-slide-editor>
>                 <form: update="row-#{typed_id}" />
>               </belongs-to-slide-editor>
>               <delete-button/>
>             </td>

That should work, but it won't with my example in agility/contrib-test
because I'm not following the Rapid convention.  I'll try and make it
work in agility/contrib-test so you have a worked up example.

>
> When I click it I get an exception:
>
> Processing AuthorsController#destroy (for 127.0.0.1 at 2009-03-17
> 09:24:51) [DELETE]
>   Parameters: {"id"=>"3260-geoffrey-drake"}
>
> ActionController::InvalidAuthenticityToken

But this is a completely different error.  It usually means that your
server & browser got out of sync.  For example, you can get it when
switching between development & production environments on the
server.   Log out & log in again, and retry.

Bryan

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