Handy Rails Tips
Ruby on Rails tips and tutorials
Writing A Rails Application With TextMate
For Mac users, TextMate is powerful tool for writing code. But having a great tool is pretty pointless unless you know how to use it. By spending a few hours learning about TextMate’s features you can almost half the time it takes you to write code. This tutorial will walk...
Knowing when to use flash.now
The flash hash is designed to carry a message from one action to the next. Here’s a simple example:
DRYing Up Your Ruby Code With Modules
One of the fundamental principles in Ruby is DRY: Don’t Repeat Yourself; which makes sense. Why waste time and effort re-writing code when you can simply reuse code you’ve already written? It also means if you ever need to change your code, you only have to change it in one...
Adding A Close Button To Your Flash Messages
In tip #3 I showed a quick javascript tip to hide your flash messages after a time delay. This technique may not be suitable for every application however; hiding feedback messages too quickly may make your site less accessible, especially to users who are visually impaired.
Documenting your application or plugin using RDoc
When working with rails, the Rails Framework Documentation and Ruby Documentation are invaluable resources.