NetManiac

Witold Rugowski on web20 wave with Ruby on Rails

Finally – RJS templates a rebours

Posted on November 19, 2006 - Filed Under AJAX, JavaScript, Links, RubyOnRails

It looks not only me was feeling RJS templates are not all when comes to JavaScript generated from Rails. RJS works well when it has deal with AJAX requests. But when You need to generate some normal JavaScript code, based on some Rails controllers state it becomes hard with RJS (or at least I don’t know some easy way).

So there is Minus-R plugin (and its SVN repo) which allows to write Javascript templates like HTML from RHTML templates, just embeds Ruby in JavaScript. I have to try it, but judging from description… It is the Grail of JS generation…

Popularity: 3% [?]

Hits for this post: 2790

Similar Posts

Comments

Leave a Reply