19 Rails Tricks

I came across this article on Ruby Inside. It contains a nice quick list of things that you might not have known that you can do in Rails.  I find the Rails Engines to be particularly interesting.


  1. Benchmark logic in your controller actions
  2. acts_as_nested_set
  3. Easier collections with to_proc
  4. Convert arrays to sentences in views
  5. Send files back to the user
  6. Iterating through page elements with RJS
  7. Check for existence
  8. Number helpers for common number tasks
  9. Testing different route configurations easily
  10. Get lots of info about requests
  11. Improving session performance even more than with ActiveRecord
  12. Caching unchanging data at application startup
  13. Check your views are rendering valid HTML / XHTML
  14. Cleaner HTML output testing 
  15. Run long-running tasks separately in the background
  16. Make ids in URLs more user friendly
  17. Separate out slices of functionality into Engines
  18. Calculations
  19. XML or YAML output of your data 

November 18, 2008. Tags: . Uncategorized.

Leave a Comment

Be the first to comment!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

Trackback URI

%d bloggers like this: