After looping through a User model in rails and displaying some columns, at the end of the view I get:
#<User:0x1095e07b8>#<User:0x1095dfed0>#<User:0x1095de080>
Any ideas on how to get rid of this? Also what does it mean?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You are probably using this for your loop:
The equals sign will print the output of that function to the page. Drop the equals to omit the output:
The looping will still occur, but the output won’t hit the view.