Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如,
[36] pry(main)> questions = Question.all => #<Mongoid::Criteria selector: {} options: {} class: Question embedded: false>
我不希望它输出标准,我只想执行没有输出的语句。
Just append at the end a semicolon
>> questions = Question.all;
您可以附加一个 nil 值:
>> questions = Question.all;p