The solution that I got working is:
I will first
= link_to 'link somewhere', 'http://example.com'
- if @condition
= ", then render this half of the sentence if a condition is met"
You can use =
, though =
is used to output the result of Rails code, but here it will server the purpose.