ruby on rails 3 - How to redirect to a permalink that is stored as a column in my model -


I'm making a place where contributors can post content on my site. I want to create a link where another user You can click and take the user to the relevant Contributor's website. Permalink for each contributor's website is a column in my Contributor Model

Anything that I tried adds yet to the contributor's permalink at the end of the current URL. That is, instead of redirecting to www.contributorcite.com, www.mysite.com/xxx/www.contributorsite.com

please help

(Maybe, the link should be created in the controller instead of the model, or just enter http: // for the information entered by the user): < / P>

  & lt;% link = "http: //" + user.permalink% & gt; & Lt;% = link_to "User Website", Link% & gt;    

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -