rails core functionality