Why is the view of Rails application in the format *.erb.html
? What does "erb" mean?
erb stands for "Embedded RuBy". A .html.erb
or .erb.html
file is HTML with Ruby code embedded in; Rails will evaluate the Ruby to add content to the file dynamically, and will output a "pure" HTML file for rendering.