Ruby on rails Rails 4——在控制台中搜索——表达式形式
我想知道如何在我的控制台中搜索Ruby on rails Rails 4——在控制台中搜索——表达式形式,ruby-on-rails,console,Ruby On Rails,Console,我想知道如何在我的控制台中搜索 UserOrganisationMapperService.call(User.where(email: ‘hello@trcr.com’).first) 我试过上面的方法。这种格式的表达式以前对我很有效,不过现在我收到了一些我无法理解的错误消息 SyntaxError: (irb):7: syntax error, unexpected tIVAR, expecting keyword_do or '{' or '(' ...where(email: ‘hel
UserOrganisationMapperService.call(User.where(email: ‘hello@trcr.com’).first)
我试过上面的方法。这种格式的表达式以前对我很有效,不过现在我收到了一些我无法理解的错误消息
SyntaxError: (irb):7: syntax error, unexpected tIVAR, expecting keyword_do or '{' or '('
...where(email: ‘hello@trcr.com’).first)
... ^
(irb):7: syntax error, unexpected ')', expecting end-of-input
...ail: ‘hello@trcr.com’).first)
我已经设法弄明白了“tIVAR”的意思是实例变量。剩下的我不知道。我不知道在我放在控制台中的那句话的上下文中这意味着什么
有人能看出我做错了什么吗?而不是:
UserOrganisationMapperService.call(User.where(email: ‘hello@trcr.com’).first)
尝试:
我怀疑'
被视为特殊字符(与'
相反)。而不是:
UserOrganisationMapperService.call(User.where(email: ‘hello@trcr.com’).first)
尝试:
我怀疑'
被视为特殊字符(与'
相反)