What is the meaning of erb?

khanh picture khanh · Nov 26, 2010 · Viewed 74.7k times · Source

Why is the view of Rails application in the format *.erb.html? What does "erb" mean?

Answer

Chowlett picture Chowlett · Nov 26, 2010

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.