Basic rails support. Fixes #5