title: How do you get the app name when running Rails on Heroku?
body: <p>This means app-name.heroku.com.</p>
  
  <p>Note this is different from <code>Rails.application.class.parent_name</code>.</p>
  
  <p><code>Rails.application.class.parent_name</code> is defined in the application.</p>
  
  <p>Working in Rails 3.</p>