title: Ruby unexpected $end, expecting kEND
body: <p>I am getting the following error: </p>
  
  <blockquote>
    <p>unexpected $end, expecting kEND</p>
  </blockquote>
  
  <p>Does <code>rescue</code> require <code>end</code>? How about <code>begin</code>? Am I missing an <code>end</code> somewhere?</p>
  
  <pre><code>class AdAssistedController &lt; CommonController
    def initialize
      super
      @pageJs = ['ad_assisted']
      @pageCSS = ['ad_creator', 'fbx_launcher', 'score_dashboard', 
                  'slider_dashboard_new', 'score-dashboard_new',
                  'jquery-ui']
    end
  
    def index
      begin
        @feed_names = FbxLauncher::Feed.find(:all)
      rescue Exception =&gt; e
        log_error(e.message)
        log_error(e.backtrace)
      end
  
      respond_to do |format|
        format.js { render :partial =&gt; 'index'}
        format.html { render :partial =&gt; 'index'}
      end
    end
  </code></pre>