Tuesday, May 22, 2012

how to 'ror 3.2' with 'yui 3.5'?

Trying to write my first RoR application with YUI framework. Was googling for ror+yui manuals with no success. So i went to YUI site. YUI says:



// Put the YUI seed file on your page.
<script src="http://yui.yahooapis.com/3.5.1/build/yui/yui-min.js"></script>


Where it's suppossed to be putted in RoR app?



I've tried to app/assert/javascripts/yui-min.js.

As a result i got <html class="yui3-js-enabled"> in every page. Supposing YUI is working now i've tried to copy-paste "Work with the DOM" example from YUI's page to app/public/index.html. And an error i've received:

Uncaught ReferenceError: YUI is not defined.



Sorry for my English and thanks in advance



P.S.

Tutorial/Suggestions on YUI with Ruby on Rails wasn't helpful for me.





No comments:

Post a Comment