Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database info show up when listing #56

Closed
kimlym opened this issue Oct 1, 2015 · 4 comments
Closed

Database info show up when listing #56

kimlym opened this issue Oct 1, 2015 · 4 comments

Comments

@kimlym
Copy link

kimlym commented Oct 1, 2015

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
Copy link
Author

kimlym commented Oct 1, 2015

default
2

@dowglaz
Copy link

dowglaz commented Oct 2, 2015

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
Copy link
Author

kimlym commented Oct 2, 2015

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
#56 (comment).

@kimlym
Copy link
Author

kimlym commented Oct 3, 2015

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

Thanks anyway

@kimlym kimlym closed this as completed Oct 3, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants