/ Published in: Rails
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
class << ActiveRecord::Base # Use 'Book[params[:id]]' # instead of # Let 'Book.find params[:id]'. alias_method :[], :find end
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)
class << ActiveRecord::Base # Use 'Book[params[:id]]' # instead of # Let 'Book.find params[:id]'. alias_method :[], :find end