Skip to: Site menu | Main content

Archive for the 'Ruby on Rails' Category

Cute method_missing hack

I love abusing method_missing in Ruby, it is great fun.
 module IsDoesIsntDoesnt

def method_missing(method, *args)
m = method.to_s
if (m =~ /^is_(\w*?\?)$/) || (m =~ /^does_(\w*?\?)$/)
real_method = $1.to_sym
return send(real_method, *args) if respond_to?(real_method)
elsif (m [...]

Web applications vs. Web sites, Ruby on Rails and points in between

Ruby on Rails is rightfully gaining traction and respect right along with a rapidly growing developer community. This, due to its being the near-perfect match for developing its `home-turf’ software: database backed web site. However, as pleased as I am with RoR’s success, I’m beginning to note with apprehension as it is increasingly being used [...]