Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorjervis
    <?php echo $prototype_helper->link_to_remote('index',array('update'=>'DivContent'), array('url'=>array('action'=>'homepage')));?>

    it throw error:

    Notice: Undefined index: url in /akelosapp/carCompany/lib/AkActionView/helpers/prototype_helper.php

    It should be

    <?php echo $prototype_helper->link_to_remote('index', array('url'=>array('action'=>'homepage')), array('update'=>'DivContent'));?>

    although the documentation stated what you used :(

    Thanks for reporting it, I've just fixed the documentation bug.

    BTW to make it even shorter you can use Sintags like

    <%= link_to_remote 'index', {:url'=>{:action=>'homepage'}}, :update=>'DivContent' %>