I have a UserMailer View that has several link_to:
<%= link_to('XXXXXXXX Link Title', item_url(@item, :only_path => false), :style => 'color:#5196E3;text-decoration:underline;') %>
There are several different links on the page. I would like to know if there is a way to globally set in the view to enable or disable links.
If enabled, will the above work as usual, if not for the block above, would just display the text (XXXXXXXX Link Title) and not be connected?
Any ideas other than wrapping each link_to inside an IF statement?
thank
source
share