I have an app set up where a user can nominate a keyholder who will have read-only access to some of their account. The keyholder is just a user with a keyholder boolean field set to true. They also have an access_id equal to the user_id of the account they can access.
Now what I am trying to do is have a link that points to the folders of the user from the keyholder's account, but I'm stumped how to write the link.
E.g.
<%= link_to 'Folder', folder_path(current_user.folder) %>
would link to their own folder, but how do I do:
<%= link_to 'Other User's Folder', folder_path(user.id = access_id) %>
if you see what I mean? Thanks!