I need to “embed” a link in an object property, such as deal.description = "Click <a href='www.something.com'>here!</a>".
Doing it that way doesn’t seem to work; my show page just shows all that text (with the html tag and everything).
Trying to use #{link_to 'text', 'url'} gives NoMethodError: undefined method 'link_to' for main:Object.
This is currently in my seeds.rb file but I'll also need to somehow allow my users to enter a link inside the description on the new page.
How do I do this?
puts deal.descriptiondisplay ?You can check out the calendar <a href='http://mail01.tinyletterapp.com/FaresYouCanUse/today-s-flights-iowa-new-hampshire-south-carolina-nevada/13473421-www.google.com/flights?c=cf040a38-8c96-4f9b-9338-8c223c053a53'>here</a>.