Take the 2-minute tour ×
Code Review Stack Exchange is a question and answer site for peer programmer code reviews. It's 100% free, no registration required.

A common pattern while creating links is adding a help link in between parentheses. Something like this:

<div>(<a href="help">more help</a>)</div>

In haml, the best way I found some ways to write it (using the link_to rails helper):

%div
  (
  = link_to('help')
  )

or

%div
  = raw "(#{link_to("help")})"

But both seems hard to read. How can I write it better?

share|improve this question
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.