Monday, May 14, 2007

The Duh Files - Getting AJAX working in Rails

Last night I was trying to get some simple AJAX working in Rails. I used my form_remote_tag, I had my DIV ready, wrote my controller action, and nothing was working. I called my colleague and realized that I had forgotten to include the Javascript required using:

<%= javascript_include_tag :defaults %>

Duh.

No comments: