Sam L. wrote:
RHTML is a great implementation in that it puts HTML first, and Ruby
second. I would have thought RJS would be the same way: a .js with ERb
- I have to learn a whole new set of commands to use Scriptaculous.
- Developers have to constantly chase the new implementations in
Am I missing something? Is there a compelling reason for not using this?
Also I want to say that html and js are very different beasts. HTML is
a markup language, JS is a scripting language. You can use a pure ruby
solution to generate html as well with builder, but most of time it just
to ruby) and many ruby programmers just feel more comforatble with:
$(’<%= @some_div %>’).visualEffect(Effect.Highlight);
And as long as it really works, I consider it totally badass awesome
that I don;t need to write JS directly most of the time. Of course to
that doesn’t mean you are condemned to work in it.