title: Issue with Conditional Logic - Ruby on Rails
body: <p>I am having a problem with some conditional logic with Ruby. Admittedly I am a newbie to all things Ruby.</p>
  
  <p>This code is causing the site not to load:</p>
  
  <pre><code>&lt;body style="background-image:url("&lt;%= if @is_home_page.present? '/images/bg-main-power-bg.jpg' else '/images/bg-inner-power-bg.jpg' end %&gt;"); background-repeat:repeat-x;"&gt;
  </code></pre>
  
  <p>Without the conditional the CSS loads just fine.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>