A user has a set of saved links.
Each link has the properties address
and text
. These can be accessed like so:
@user.links.first.address
@user.links.first.text
How would I generate a list of a
tags for all links that a user has saved in a helper method, that I can call from a view?
you can try with