raw1z / amistad

Adds friendships management into a rails application
http://github.com/raw1z/amistad
MIT License
185 stars 71 forks source link

Database info show up when listing #56

Closed kimlym closed 8 years ago

kimlym commented 8 years ago

So basically the database shows up on the page every time i do a listing of friends, invited or pending invites.

My code looks like this <%= @friends.each do |friend| %>

<%= friend.account %>

<% end %>

and the database info look like: [#<User id: 1, account: "account1", password_digest: "$2a$10$m3epMrV5Hn5pNPZvo5xx5.wma8zYPbbxWgkpKJz5OtL...", email: "account1@osu.edu", created_at: "2015-04-21 02:17:49", updated_at: "2015-04-21 02:17:49">]

Any ideas? Thx

kimlym commented 8 years ago

default 2

dowglaz commented 8 years ago

Sorry, can you describe it a little depper?

The images can't be displayed here because "it contain errors". :P

PS: I'm not a member of the team, I'm just a recent user of the gem and I'll try to help if possible..

kimlym commented 8 years ago

So bacially every time i teied to print the friend one user has,or whatver fuction the gem provides, there would be bunch of database info printed as well outside the loop. u could try simply do user.friends.each do (whatever function the gem gives) print end

There should be a list of user id .... password.... created at....updated at....

Thanks for help, really appreciate it

Sorry, can you describe it a little depper?

The images can't be displayed here because "it contain errors". :P

PS: I'm not a member of the team, I'm just a recent user of the gem and I'll try to help if possible..

— Reply to this email directly or view it on GitHub https://github.com/raw1z/amistad/issues/56#issuecomment-145016009.

kimlym commented 8 years ago

Fixed it I was so stupid that put <%= %> with my iteration instead of <% %>

Thanks anyway