Wasting time in Rails

August 19, 2008 – 2:04 pm

I just spent about 20 minutes trying to use the form_remote_for tag with the :update attribute. No big deal, right? The following occurred:

  • Upon running, the entire page rendered the partial, not just the designated div.
  • request.xhr? always returned false in the controller.
What was the problem?  Oh, I forgot to include the :defaults Javascripts in my layout.  Doy.
And now I wasted 5 more minutes writing about it.  Don’t let this happen to you!

Post a Comment