Why wouldn't a ruby on rails solution be right for a ruby on rails app?
Restarting is just ignoring the issue.