Main application from Rails tutorial