added ability to pass any object as link, which will then be turned into a link using rails' url_for helper