Update rails.py