title: Strange Rails console behaviour
body: <p>When I run a multi-line statement in the Rails 3.0.1 console, pressing enter doesn't actually run the statement. Instead, it goes to a new console line, and the cursor has been tabbed to the right. Then I have to run a basic line (like <code>p "hey"</code>), and then the multi-line statement will run.</p>
  
  <pre><code>ruby-1.9.2-p0 &gt; images = Image.all;images.each do |im|; if im.imagestore_width.blank?;im.save;end;
  ruby-1.9.2-p0 &gt;     p "hey"
  </code></pre>
  
  <p>I've been doing it like this for awhile and it's been working okay. But now I've got a problem in the console and it might be related. When I ran the above code, instead of it working like it normally does, it just went to a new console line with a ? added</p>
  
  <pre><code>ruby-1.9.2-p0 &gt; images = Image.all;images.each do |im|; if im.imagestore_width.blank?;im.save;end;
  ruby-1.9.2-p0 &gt;     p "hey"
  ruby-1.9.2-p0 ?&gt;
  </code></pre>
  
  <p>When it does this, I can't exit the console</p>
  
  <pre><code>ruby-1.9.2-p0 ?&gt;  exit
  ruby-1.9.2-p0 ?&gt;  ^C
  </code></pre>
  
  <p>Are these problems related? How can I fix them?</p>