core rails functionality