Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorcassiozen
     

    Ok, I know this is a kind of stupid question, so sorry in advance...

    I don´t develop in RoR, but i would like to use some RoR helper files in Akelos. Is it possible to convert them? Are there any rules or tips?

    For those who are curious, I personaly don´t like Prototype+Scriptaculous for Ajax. I Prefer Mootools, a more compact and powerfull (imho) framework. There are helpers that use mootools and overlaoded the default rails helpers files to change Prototype, developed by the mootools community. You can find the Mootools helper files for RoR at http://code.google.com/p/mootools-rails-helper

    Mootools framework site is http://www.mootools.net

    •  
      CommentAuthorbermi
     

    You can simply create a MootoolsHelper at app/helpers/mootols_helper.php and convert their code to PHP.

    If you implement MootoolsHelper::remote_function it will overwrite PrototypeHelper::remote_function when using Sintags calls to helpers like

    <%= remote_function {:update => 'options'}, {:url => {:action => 'update_options'}} %>
    

    If you manage to port the mootools helper, it would be great if you share it with the community as a plugin.

    Good luck