0

I have the following code in my html.erb file in my ROR application.

<% $tmp_bug="something" %>
<a href="http://jira.copivia.com:8080/browse/#{$tmp_bug}">JIRA</a>

I want to add that ruby variable to the end of the hyperlink. This does not seem to work.

1 Answer 1

5
<% $tmp_bug="something" %>
<a href="http://jira.copivia.com:8080/browse/<%= $tmp_bug %>">JIRA</a>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.