Teaser Image

Handy Rails Tips

Ruby on Rails tips and tutorials

  ·     ·   About

Styling Your Blog's Code To Look Like Your Favorite Text Editor With CodeRay

For those of you out there with your own blog who want to style your snippets of code to look like your favourite text editor, here is a simplified version of the method I’ve used here on Handy Rails Tips.

22 May 2009 Read more...

Managing your log files from within your app

The log file can offer valuable information about what’s going on on your app.

21 May 2009 Read more...

Loading Observers Automatically From Their Own Folder

Observers are a great way of cleaning up and DRYing up your models. I use them quite a lot to deal with sending mails, logging messages and anything else that isn’t strictly the model’s responsibility.

21 May 2009 Read more...

Hiding A Flash Message After a Time Delay

The flash hash is a great way to provide feedback to your users. Here is a quick tip for hiding the flash message after a period of time if you don’t want to leave it lingering around.

21 May 2009 Read more...

Keeping Your Dates and Times DRY with to_formatted_s

Raw dates and times in Ruby are not too user-friendly!

18 May 2009 Read more...
Page 5 of 5 Newer posts →
Subscribe!
All content copyright © 2022 • All rights reserved.
Site theme by Dirk Fabisch