Just use rails plugin.