3 ms·
This is 90% HAML syntax, and not even very good HAML; the first line (`.col-md-8`) is even worse because of Bootstrap. The only real Ruby is on Line 4. I don't
by psadauskas 10y ago
This is 90% HAML syntax, and not even very good HAML; the first line (`.col-md-8`) is even worse because of Bootstrap. The only real Ruby is on Line 4. I don't even know what Line 5 is trying to do.
Don't let this poor example turn you off from Ruby, its syntax is amazing. One of my biggest struggles with using other languages is just how ugly the syntax is, even in the best case.
- pauldino 10y agoLine 5 looks like it's for i18n. To save on typing and reduce clutter typically "_" is used as an alias for the gettext function.
- psadauskas 10y agoAh, that makes sense. Thanks.