mad.ly rails, jquery, flash, etc    about »

We're looking for senior developer. More Info

Posts Tagged rjs

Javascript + embedded Ruby templates with Rails, out-of-the-box

I recently tried using Dan Webb’s MinusMOR plugin, which allows you to write Javascript templates with embedded Ruby (a la .html.erb/.rhtml templates), but I was disappointed to find out it didn’t work with Edge Rails.
I found a random Pastie via Google that seemed to fix the plugin for Edge, and this worked okay, with the [...]


Integrating jQuery and Rails: use unobtrusive Javascript instead of view helpers

The jQuery Way to apply behavior to a document is to add it unobtrusively via the $(document).ready() function, ideally in an external script file… unlike the Rails Way, which is to add behavior to individual elements via inline Javascript, using the built-in view helpers.
The markup generated by these helpers is obtrusive, and often repetitive. For [...]


JQuery Ajax + Rails

UPDATE
Old stuff here! See Errtheblog’s post on jQuery for more up-to-date information…
***
I’ve been working on integrating jQuery’s Ajax capabilities into a Ruby on Rails application; here’s what I’ve discovered so far:
RJS templates (yes, you can use them!)
UPDATE see Javascript + embedded Ruby templates with Rails, out-of-the-box for a way to skip using RJS templates altogether [...]