Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/63.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails Rails 4——在控制台中搜索——表达式形式_Ruby On Rails_Console - Fatal编程技术网

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)
尝试:

我怀疑
'
被视为特殊字符(与
'
相反)