Archive for June, 2008

Censorship in America 1930-1970 - Comics and Movies

Thursday, June 26th, 2008

I’ve learned of some very interesting things that happened in this country recently as a result of researching about The Dark Knight and the very different character of the Joker (Heath Ledger) in this film than the previous Joker played by Jack Nicholson.
Comics Code Authority
The Comics Code Authority (CCA) is part of the Comics Magazine [...]

Month name helper passing month number for Rails

Wednesday, June 18th, 2008

I couldn’t find a helper in the API to just display months if you’re storing them as numbers (1-12) so I made one.
Add this helper code to your application_helper.rb or other appropriate *_helper.rb file.

def monthname(monthnumber)
if monthnumber

Use it in your view like this:

< %=h monthname(item.month) %>

I've left the country and this site is just an archive! Check out my trip blog!