As far as I know, .rhtml is deprecated in Rails 2. In some guides there is only .erb, but both RubyMine and NetBeans IDE generate .html.erb and I’ve also seen it many people using.
I’ve tested both and they seem to work fine without any errors or warnings, but which one is correct? .erb or .html.erb
file_name.
format.extensionis the accepted convention now, where format is html, xml, json, anything really and extension iserbif you’re using erb,hamlif you’re using haml and so on.