Displaying images in Ruby

I use a similar piece of code that checks for the existence of an image
filename. My if statement translated into your code would look like:

<% if @house.picture_id? %>
      <h1> I have a picture id! </h1>
<% else %>
      <h1> Darn it - no picture id, better place a generic image
here... </h1>

I hope this helps,

Paul

ryan wrote: