Monday, July 20, 2009

#{rails}

Well Strike me down and call me a noob
in a haml file:
:javascript
$(function(){$("#div_id_#{my_rails_object.id}").somefunc()});

Wow, the above works!

No comments:

Post a Comment