While on a ship at sea with slow (sometimes no) internet, I was developing a Ruby on Rails application for local (onboard/intranet) use. I discovered that Phusion passenger (modrails) calls home. This error layout file:
(read more)I recently refactored another developer's code to clean up some massive amounts of database pings to retrieve the current user object. The main problem was in the use of the logged_in_user or current_user idiom in Rails. Several places give good examples but leave out the details that were bugging my project.
(read more)