Set up Rails application.