我有一个像控制器中的主题一样的问题。我有错误的期待功能结束。但正如你所看到的,我已经完成了这个功能的每一步。我是RoR的初学者。Ruby on rails:意外的输入结束,期待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
AAAAH这是更快,加上一个你的速度;) –
非常感谢你:) –