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

We're looking for senior developer. More Info

Posts Tagged ajax

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 [...]