core functionality rails app