/ Published in: Ruby

Put this in environment.rb to use in your whole app or the console
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class <<ActiveRecord::Base alias_method :[], :find end
URL: http://weblog.jamisbuck.org/2007/4/4/activerecord-base-find-shortcut
Comments
