I’m having a bear finding this, so I thought I’d just ask…
If I want to capture “website” as a user field (i.e. in a contacts
database)… is there an easy, automatic way to properly format it for
a link_to tag regardless of whether they include the “http” or not?
I.e. some helper or something that someone has that I could do
<%= link_to @user.website, format_url(@user.website) %>
And it would turn:
I imagine there are some code snippits for doing this… I just
haven’t found one yet.