开发者

.each method block leaves a hash after end?

开发者 https://www.devze.com 2023-03-30 20:19 出处:网络
im following the tutorial on http://ruby.railstutorial.org/ and im on chapter 10. ive noticed after i do a .each method block it leaves a hash of all the items in the block. why is it doing this? its

im following the tutorial on http://ruby.railstutorial.org/ and im on chapter 10.

ive noticed after i do a .each method block it leaves a hash of all the items in the block. why is it doing this? its not on the pictures in the tutorial..

ex:

i have included a screenshot of what happens with the hash at the end

.each method block leaves a hash after end?

.


You don't need to print the first line

<%= ... %>
Should be
<% ... %>
0

精彩评论

暂无评论...
验证码 换一张
取 消