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.
无法打印数组中的所有项目。我做错了什么?
=@questionn.each do |item| =item.to_s
错误是:未终止的字符串遇到文件结尾,语法错误,意外 $end,期望关键字_end
haml 基于 2 个空格缩进。修复代码所需要做的就是将下一行缩进 2 个空格。您可能还想使用-而不是=第一行,这样它就不会输出返回的值#each
-
=
#each
- @questionn.each do |item| = item.to_s