0
.html.erb and Rails
I'm a Rails lover. I would like to sololearn ads that postfix in her tutorial and in her compiler. Rails is a powerfull tool that almost back-end programmer who likes ruby knows; you can make websites faster. Add, he used MVC model; a good programming practice. The .html.erb postfix makes work the tags <% %> and <%= %> ; who let's you insert rails code in an html view. https://code.sololearn.com/WauQYOh90GfL/?ref=app https://code.sololearn.com/WauQYOh90GfL/?ref=app
2 Answers
+ 2
Hi, I'm a rails lover too.
erb, itself is a html template (special way to write html), which generates actual html after being parsed through a ruby interpreter. So, unless you specify to interpret your files as .erb files, html will just parse these as plain html, and you won't get your desired output.
Unfortunately, SoloLearn does not have any rails section yet, so, your example won't work.
+ 1
I know.I'm not asking I'm revindicating this new interpreters