Ruby on Rails
Thursday, February 23, 2017
hello all, Im developing a ruby script (ruby 1.8.7)
-- its a simple script to generate an email using an ERB
my ERB has this
JIRA ticket:
[ <%= issue_key %> ] - <%= summary %>
where issue_key is this, https://jira-server.com/api/rest/query/ABC-123
I was wondering if its possible to embed that hyperlink somehow the ERB. When I get the email from this script, it embeds everything as plain text, I cant find a way to embed a hyperlink into a string
similar to this,
<a href="https://jira-server/etc"> [ ABC-123 ] </a>
Im generating the template like this from my .rb
templ = File.read('templates/' + template + '.erb')
generate = ERB.new(templ,nil,">").result(binding)
thanks
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/8eaf84b8-27d6-4b11-9872-e15176db8266%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment