Skip to content

2. JavaScript Includes

MadRabbit edited this page Sep 13, 2010 · 3 revisions

By default RightRails will automatically handle all the necessary module includes, all you need is to write the standard command like that

<%= javascript_include_tag :defaults %>

It will take care of everything automatically.

Internationalization Packs

RightRails will automatically check the I18n.locale variable and if available will try to include related language pack

Using JavaScript Builds In Production

RightRails rightjs_scripts method will automatically switch to the raw, non-build versions of the JavaScript libraries in the development environment and use the compacted versions in production

Clone this wiki locally