Posts tagged with 'ruby'
Oct 24, 2009
Customizing Rails Serialization
I wanted to customize the ActiveRecord attributes which were being serialized by to_json. This is easy enough if you're serializing one record; add the attribute names as arguments of the to_json met...
Oct 15, 2007
Aug 29, 2007
A few caveats when running the ruby-openid server
ruby-openid comes with a sample Rails server and a consumer. However, the server has a few bugs out of the box. First, the server uses @params and @session, rather than the `params` and `session` metho...
Oct 09, 2006
Ruby BetaBrite Writer
... Tender Love Making created a ruby library that allows you to write out to a BetaBrite LED display. What's more, you can write out to his display, and take a photo of it with a trés-excellent script!
Sep 23, 2006
A Bit A Bout Design Daily
...vices. So I wrote a ruby script to slurp links from a number of design-related feeds, and sic webkit2png on the links. It then uploads them to my web server, and voila! Screencaps of designy sites. So...
Jul 12, 2006
datetime-design-pattern in Ruby
I was looking for a way to express the datetime-design-pattern in Rails, which is a common datetime format for microformats such as hCalendar, hReview and hAtom. I found that Time#xmlschema does just t...
Jul 09, 2006
Searchville and ActsBasicallySearchable
So, you may notice that I just added a search box which will search posts, and maybe comments in the future. This was the first time I've really written a search engine, and it was kind of fun. I initi...