Ruby on rails: unexpected end-of-input, expecting keyword_end : <p>i have a problem like the subject in the controller. I've got error of expecting end of function. But as you can see I've got every end of the function. I'm a beginner in RoR.</p>

<pre><code>class UsersController &lt; ApplicationController
before_filter :authenticate_user!

  def show
    @user = User.find(params[:id])
    @user_catalogs = @user.catalogs
    @hash = Gmaps4rails.build_markers(@user.locations) do |location, marker|
    marker.lat location.latitude
    marker.lng location.longitude
    marker.infowindow location.address
  end

  def index
       @users = User.where.not("id = ?",current_user.id).order("created_at DESC")
       @conversations = Conversation.involving(current_user).order("created_at DESC")
  end
end
</code></pre>
