August 31, 2009
We’re sorry, but something went wrong.
You’re using the above combination, and it’s your first time deploying this app via capistrano. You get this:
A one way ticket to baldness
Not so bad you think. Then you go to the logs where you find precisely nothing. No logs. Zip.
The production.log files are empty, as are the apache logs. [...]
Read the full article →
August 31, 2009
Speed is pretty important, especially with searching. Fortunately it’s a cinch to use ultra fine grained caching in Rails (objects, search results, json data etc), as long as you’ve have installed the Memcache server, set it up, and started it. In your environments.rb:
Shake
require “memcache”
CACHE = MemCache.new(’127.0.0.1′)
In your application_controlller.rb:
private
def cache(key)
begin
[...]
Read the full article →