Inline Links in HAML

Ruby on Rails becomes butthurt confusing on some things that ought to be simple. I use HAML a lot and get uncertain at times on how to do easy things, like putting a link in the middle of a paragraph. 1. HAML-way %p You can visit us at %a{:href => "http://example.com"} this link anytime! 2. With help of link_to %p You can visit us at = link_to "this link", "http://example.com" anytime!...

January 24, 2016 · 1 min · 183 words · Gian Sass