Rails makes it easy to relate URL’s to their respective controller methods. If you want another action, just add the method to the controller and append the name to the controller URL. However, this controller-centric approach is a mixed blessing, because it lends itself to redundancy and extraneous methods. The recent Rails 1.2 release introduces RESTful facilities and a resource-centric URL structure that makes it easier to remove the junk and keep the CRUD. (more…)
Posts Tagged ‘ruby’
REST Easy, Rails 1.2 is here
Tuesday, February 13th, 2007Rails Page Caching Explained
Saturday, December 2nd, 2006Page caching is the simplest form of caching that Ruby on Rails offers. When invoked, page caching saves output to Rails’ public directory where it is subsequently served along with the other static pages. Of course this is advantageous for high traffic sites or pages that are slow to render. In most cases, page caching works without any config file editing. I, however, encountered a minor problem that prompted me to investigate this simple mechanism a bit further. (more…)