RJS templates in Rails automatically wrap the generated Javascript with an exception handler that pops up an alert() box when an error occurs. This plugin overrides that behavior to instead log Javasc
talked about invoking simple RJS actions right there in your controller. Did you know you can do the same in your views, with (among other helpers) link_to_function?
it seems like a bit of overkill to have to create a new file if all you’re doing is highlighting some element, or removing one. If your action only responds to “text/javascript” requests, it’s often m
I have a few snippets I’ve been using for Ruby on Rails that aren’t included in the default bundle. I figure it might be useful for some people. These snippets mostly use the new RESTful routes (using
KRJS attempts to solve that problem by allowing dynamic inclusion of AJAX calls on HTML elements. When a controller defines a method (based on naming convention) that handles a client-side event, the
RJS templates are an exciting and powerful new type of template added to Rails 1.1. Unlike conventional Rails templates that generate HTML or XML, RJS templates generate JavaScript code that is execut
RJS is a template type for Rails that allows Rails developers to use Ruby to produce dynamic JavaScript code that will usually be executed in response to an AJAX call. There are lot of disparate resou
RJS is really a pain to debug. When things aren’t working right, they often don’t show up on the page at all. These truths make testing RJS especially important.
RJS is great for writing multi-action buttons. The code is a blend of Ruby simplicity, but can do anything JavaScript can. It lives in the Ruby action or associated RJS view. You write actions that th