Handy Rails Tips
Ruby on Rails tips and tutorials
Improve Performance With Record/Resource Caching
For my personal homepage I wanted to load the latest tips from Handy Rails Tips as well as my most recent Tweets on twitter. As these resources are stored on different sites from my homepage, there was a little lag when loading the landing page.
Faster Tests With factory_grabber
I use factories instead of fixtures when testing. If you haven’t already discovered factories, check out this Railscast: Factories not Fixtures.
Make Your Life Easier—Write Less CSS
As far as programming languages go, CSS is the least fun to write. Without variables, mixins or mathematical operations, it can be very time-consuming to write CSS and a nightmare to make changes.
DRYing Up Your Code With A Little Metaprogramming
Metaprogramming in a nutshell is writing code that writes code. Here’s a really simple example:
Dynamic Page Caching With Prototype
Ryan Bates recently released a Railscast on Dynamic Page Caching. This technique caches each page and then updates the page’s dynamic content using Javascript.