.html.erb and Rails | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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

28th May 2017, 12:12 PM
The Guayguy
The Guayguy - avatar
2 ответов
+ 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.
30th Jun 2017, 3:39 PM
Salekin
Salekin - avatar
+ 1
I know.I'm not asking I'm revindicating this new interpreters
12th Jul 2017, 10:45 AM
The Guayguy
The Guayguy - avatar