コントローラの件名のような問題があります。私は機能の終わりを期待しているのエラーを持っている。しかし、あなたが見ることができるように、私は機能のすべての終わりを持っています。私はRoRの初心者です。Ruby on rails:予期しない入力終了、expecting keyword_end
class UsersController < 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
それを見つけた;) –
はどうもありがとうございました:) –