Base rails application