Suppose I get all the users by @users = User.all, then in my partial I have some loop
%ul
= users.each do |index|
= content_tag(:li,index.name)
the problem, is that I get this output
<ul>
<li>
Administrator //correct user name
<li>
[#<User id: 1, email: "[email protected]", encrypted_password: "$2a...",...;]
</ul>
Why is the entire object displayed ?