Archive for the ‘Coding’ Category

Local autocomplete with Rails, Prototype, and script.aculo.us

Tuesday, October 21st, 2008

Server vs. Client First of all, I think server-based autocompletion is great. The _with_auto_complete plugin is solid, and I've used it in several projects. But there are some times when I just prefer to have the autocompletion run locally in the browser, usually to avoid a superfluous server-call. ...

Wasting time in Rails

Tuesday, August 19th, 2008

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