Single-line if-else statement expecting keyword_do
<p>I've been using single-line if-else statements for a long time, and just recently I've repeatedly kept getting this error: </p>

<pre><code>registrations_controller.rb:88: syntax error, unexpected tSYMBEG, expecting keyword_do or '{' or '('
</code></pre>

<p>This is the syntax I'm using in my current example, and I've double, triple, and quadruple-checked that the syntax is right:</p>

<pre><code>resource.errors.any? ? render :new : do_something_else!
</code></pre>

<p>I've checked all around, and can't seem to find any changes, or similar issues.  Oddly, when I run </p>

<pre><code>foo = [1,2,3]
foo.any? ? 'bar' : 'baz'
</code></pre>

<p>in my terminal, I get no errors.  I'm quite sure I've replicated what I'm trying to do in all relevant respects here, but can't seem to find a hint as to why this is happening.  I figured maybe there's a problem with <code>render</code>, but I don't think this is the case, as I got a similar error when trying to use <code>render 'new'</code> with a string instead of a symbol.</p>