Sunday, March 23, 2008
Great explanation of Rails auto-loading
I thought Mark Bush did a great job of explaining Rails' auto-loading behavior on the Rails-talk mailing list. I'm posting it here to help others find it, and so I remember where to find it next time I'm struggling with it. I've known that Rails automatically requires and loads classes on the fly using standard conventions for module names -> file names, but I had a hard time grasping how it worked. Mark explains it very concisely.The Rails list has a low signal-to-noise ratio but it's still worth paying attention to for gems like this.
Labels: rails


0 Comments:
Post a Comment
Links to this post:
Create a Link
<< Home