Posted by: Bob Ngu on: March 7, 2007
My RoR efforts have culminated in JiggyMe, check it out!
A handy table to remind oneself of the association between MVC, Rails sublibrary, and subdirectories
| MVC Phase | Rails sublibrary | Rails subdirectory |
|---|---|---|
| Model | ActivRecord | C:\ruby\lib\ruby\gems\1.8\gems\activerecord-1.15.1\lib\active_record |
| View | ActionView | C:\ruby\lib\ruby\gems\1.8\gems\actionpack-1.13.1\lib\action_view |
| Controller | ActionController | C:\ruby\lib\ruby\gems\1.8\gems\actionpack-1.13.1\lib\action_controller |
Ruby standard libraries are located at c:\ruby\lib\ruby\1.8, for examples, all the files for REXML are in c:\ruby\lib\ruby\1.8\rexml folder.
3rd party Ruby libraries and extensions are stored at c:\ruby\lib\ruby\site_ruby, for examples, HTREE.
The gems directory, though not technically part of Ruby libraries, are stored at c:\ruby\lib\ruby\gems.
It should be noted that they are at the same level in the directory structure under c:\ruby\lib\ruby.