# What exactly does an .html.erb file do?

**URL:** <https://www.ruby-forum.com/t/what-exactly-does-an-html-erb-file-do/126878>\
**Category:** Rails\
**Created:** [January 23, 2008, 1:18am UTC](https://www.ruby-forum.com/t/what-exactly-does-an-html-erb-file-do/126878 "2008-01-23T01:18:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![revanche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@revanche](https://www.ruby-forum.com/u/revanche)\
**Post date:** [January 23, 2008, 1:18am UTC](https://www.ruby-forum.com/t/what-exactly-does-an-html-erb-file-do/126878/1 "2008-01-23T01:18:28Z")

</div>

Hi everyone,

I’ve been setting up a web application on my host (mediatemple) using  
the restful\_authentication with the guidance offered by a few help files  
and the video from Railscast. Everything went fine with the  
installation, configuration and database migration, but whenever I run  
it, this error pops up:

Processing SessionsController#new  
[GET]  
Session ID: 5c4c2fe4d0f72f51aef1bbe4e9b391a1  
Parameters: {“action”=\>“new”, “controller”=\>“sessions”}

ActionController::MissingTemplate (Missing template  
/home/xxxxxx/containers/rails/beta/app/views/sessions/new.rhtml):

Now when I flip over to that directory, I have:

:/home/xxxxxx/containers/rails/beta/app/views/sessions$ ls  
new.html.erb

Is there some missing file association that I need to setup or ?

---

<div class="post-metadata">

**Author:** ![revanche](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/ac91a4/32.png) [@revanche](https://www.ruby-forum.com/u/revanche)\
**Post date:** [January 23, 2008, 2:22am UTC](https://www.ruby-forum.com/t/what-exactly-does-an-html-erb-file-do/126878/2 "2008-01-23T02:22:34Z")

</div>

What version of rails are you running on? Rails 2.0 uses the new  
extensions  
of .html.erb which indicates that it’s in a HTML format written in ERB,  
where as previous versions of rails still use the old .rhtml extension.  
You  
may have to rename the file to .rhtml.

On Jan 23, 2008 10:48 AM, Neil H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> Processing SessionsController#new  
> :/home/xxxxxx/containers/rails/beta/app/views/sessions$ ls  
> new.html.erb
> 
> ## Is there some missing file association that I need to setup or ?
> 
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Ryan B.

> **[frozenplague.net](http://www.frozenplague.net)**
>
> This domain may be for sale!

Feel free to add me to MSN and/or GTalk as this email.
