Tagged Questions

eRuby (Embedded Ruby) is a templating system that embeds Ruby into a text document. It is often used to embed Ruby code in an HTML document, similar to ASP, JSP and PHP.

learn more… | top users | synonyms

3
votes
1answer
40 views

Hide content unless an array contains at least one non-empty string

I have an array of hints. Sometimes, this array could contain an empty string. Occasionally, the array might contain only empty strings, in which case I want the whole block to be skipped. This is ...
4
votes
3answers
2k views

Best way to include image_tag inside link_to

What is the most elegant and readable way to in include (potentially long) image_tag calls inside of link_to? Example ...
5
votes
3answers
441 views

Carousel code review

Is there a better way to implement my carousel in less lines? Currently my solution is: ...