‘Tutorials’ Category Archive
Complex Default Values with Rails 3
Sep 05
I needed an extensible way to default values for new models in Rails 3.0.5 so I went Googling. I ended up finding a great question on StackOverflow. (of course) So I got started with the help of the answers on that question. I first tried the before_create callback but soon realized that it only firesRead the whole post.
Prevent jQuery.live() Handlers From Firing Multiple Times
Aug 05
Recently I was working on something where I needed to use jQuery’s .live() event handling. The problem I was experiencing was that my .live() handler was firing multiple times for the same event. I devised a rather simple way to avoid this issue and I’m going to share it with all of you. The firstRead the whole post.
Gracefully Handling AJAX Requests with ASP Classic
Jul 06
I’ve been working with so-called “Classic” ASP for about two years now. Here’s a trick I’ve put into practice with great success. Often when writing data-driven web scripts you may need to alter the presentation of that data based on the requester or some other variable. For instance, a script may be requested via aRead the whole post.
Lehigh Valley Ruby Meetup Notes 2011/03/02
Mar 05
Notes from the March second LV Ruby Meetup group. We built an ‘IdeaShouter’ app with haml, sass, and compass. By the end of these notes you should have built one too. Companion code can be had on github.
