rails backend for entry