Displaying 1 result from an estimated 1 matches for "update_book_titl".
Did you mean:
update_book_title
2005 Nov 11
2
InPlaceEditor trouble
...pdate action at the controller, I tried to define the
InPlaceEditor with following callback (for manually building the argumetnd
for the reqeust)
<script type="text/javascript">
new Ajax.InPlaceEditor(''title-<%= book.id <http://book.id> -%>'',
''update_book_title'',
{ callback: function(value) { return ''value='' + value + ''&id='' + <%=
book.id<http://book.id>-%>}});
</script>
I get a javascript error saying:
ArgumentError in
MyController#update_book_title
wrong number of arguments (1 for 2)...