Is there a way to access each user account in Volt?

51 views Asked by At

Is there a way to access each user account in Volt? I need to be able to click on a User._name and get to their account to see their details... How do I access the account of each user.?

1

There are 1 answers

0
Ryan On

Yes, users are just part of the store.users collection, so you can access them and query them like you normally would for another collection.

store.users.all.each do |user| puts user.name end