February 2009
12 posts
Acts As Keyable →
Here is a simple little module for Rails apps that allow you to have prettier URLs. By default Rails generates routes such as http://mysite.com/books/1234. Using acts_as_keyable, this easily becomes http://mysite.com/books/oliver_twist. Place acts_as_keyable.rb in your RAILS_ROOT/lib folder and add this to your models you want to be keyable.
require 'acts_as_keyable'
class Book <...
My Top 5 Artists (Week Ending 2009-2-22) →
The Flaming Lips (2)
Willie Nelson (2)
Hole (1)
Lucinda Williams (1)
Arcade Fire (1)
Imported from Last.fm Tumblr by JoeLaz
3 tags
Hacking A Little Javascript
I’ve been having fun over the weekend hacking some javascript. I needed something that would auto summarize some form fields and then pass the total along to another page. Enter formtotal: http://github.com/lance/formtotal
Usage
Add this to your HTML file:
<script type=”text/javascript” src=”scripts/mootools.js” charset=”utf-8”></script>...
2 tags
Travis Jumps!
25. YEAR 2000 COMPLIANCE/WARRANTY: Vendor shall ensure the product(s) and...
– Found in an RFP I was considering bidding on (but ultimately did not). Do they really check Y2K compliance still? Seems kind of silly to worry about it since we’ve already past that date.
My Top 5 Artists (Week Ending 2009-2-1) →
Willie Nelson (7)
Johnny Cash (5)
Emmylou Harris (4)
Lucinda Williams (4)
Jimmie Dale Gilmore (3)
Imported from Last.fm Tumblr by JoeLaz