Hi,
I have a table-plus with registrations.
User's are able to remove their own registration from the table.
If not registered, a user can click the "Register".
When the button is clicked a new registration appears in the table,
and the button should disappear.
I'm using the following code:
<table-plus:memberships fields="user, team, score" part="members">
...
<controls:>
<delete-button update="self"/>
</controls:>
<tfoot:>
<do with="&@game">
<create-button update="members" model="GameMembership"
label="Register" fields="&{:user_id => current_user.id, :game_id =>
this.id}"/>
</do>
</tfoot:>
</table-without-search>
When the user registers, the new model correctly object is created but
I get a nasty ajax exception.
When the user removes the registration, the model object is deleted
from the database but I get a nasty ajax exception.
What am I doing wrong?
Regards,
Tiago Franco
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---