# How to get RadRails to accpet .erb like .rhtml

**URL:** <https://www.ruby-forum.com/t/how-to-get-radrails-to-accpet-erb-like-rhtml/103994>\
**Category:** Rails\
**Created:** [May 12, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-get-radrails-to-accpet-erb-like-rhtml/103994 "2007-05-12T15:09:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 12, 2007, 3:09pm UTC](https://www.ruby-forum.com/t/how-to-get-radrails-to-accpet-erb-like-rhtml/103994/1 "2007-05-12T15:09:18Z")

</div>

Hi,

This starting t drive me crazy now, Does anyone know of a way to get  
RadRails to support the new .erb file’s in the way it does for the old  
.rhtml files?

thanks  
adam

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 12, 2007, 9:40pm UTC](https://www.ruby-forum.com/t/how-to-get-radrails-to-accpet-erb-like-rhtml/103994/2 "2007-05-12T21:40:20Z")

</div>

Well, you can open the preferences (Window \> Preferences) and then go to  
General \> Editors \> File Associations. Click the top “Add” to add  
‘\*.erb’ and then, with it highlighted, click the bottom “Add” to  
associate the rhtml editor with that extension.

But here’s the downside… I just tried it and the .erb file opens with  
the rhtml editor, but it looks like it’s still being treated as plain  
text. ☹

Well, I have a fairly old version of the eclipse radrails plugin…  
should download the latest from Aptana and try it.

b

---

<div class="post-metadata">

**Author:** ![adam](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/4af34b/32.png) [@adam](https://www.ruby-forum.com/u/adam)\
**Post date:** [May 13, 2007, 1:31pm UTC](https://www.ruby-forum.com/t/how-to-get-radrails-to-accpet-erb-like-rhtml/103994/3 "2007-05-13T13:31:23Z")

</div>

thanks, its half worked, just no syntax highlighting

Ben M. wrote:

> Well, you can open the preferences (Window \> Preferences) and then go to  
> General \> Editors \> File Associations. Click the top “Add” to add  
> ‘\*.erb’ and then, with it highlighted, click the bottom “Add” to  
> associate the rhtml editor with that extension.
> 
> But here’s the downside… I just tried it and the .erb file opens with  
> the rhtml editor, but it looks like it’s still being treated as plain  
> text. ☹
> 
> Well, I have a fairly old version of the eclipse radrails plugin…  
> should download the latest from Aptana and try it.
> 
> b
