Shinji Kuwayama

Archive for October, 2008

31 Oct, 2008

Tip: Set the “unread count” notice in Mail.app

Posted by: Shinji Kuwayama In: Tech Tips

I have several email accounts set up in Mail.app, which is very convenient. However, when I’m focused on a particular project, I usually want to pay attention to only one of those Inboxes, and not be distracted by all the other incoming mail.
Mail.app allows you to customize the “Dock unread count” notice, which also becomes [...]

29 Oct, 2008

redirect_back

Posted by: Shinji Kuwayama In: Rails| Tech Tips

Rails has a built-in helper for bouncing your client back to the referring page:

redirect :back

It depends, however, on a correctly-set HTTP_REFERER environment variable, which you won’t always have. Search engine crawlers, for example, generally don’t have these, and there are some oddball browsers out there. (I’ve learned this from inspecting server logs, and [...]


About

View Shinji Kuwayama's profile on LinkedIn Shinji Kuwayama is a Rails developer in Chicago, Illinois.

Twitter

Posting tweet...