0

例如,

[36] pry(main)> questions = Question.all
=> #<Mongoid::Criteria
  selector: {}
  options:  {}
  class:    Question
  embedded: false>

我不希望它输出标准,我只想执行没有输出的语句。

4

2 回答 2

0

Just append at the end a semicolon

>> questions = Question.all;
于 2014-06-15T11:00:55.917 回答
0

您可以附加一个 nil 值:

>> questions = Question.all;p
于 2014-02-17T22:34:23.277 回答