# HAML problems

**URL:** <https://www.ruby-forum.com/t/haml-problems/134110>\
**Category:** Rails\
**Created:** [April 7, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/haml-problems/134110 "2008-04-07T22:38:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![silviuks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@silviuks](https://www.ruby-forum.com/u/silviuks)\
**Post date:** [April 7, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/haml-problems/134110/1 "2008-04-07T22:38:26Z")

</div>

Hi to all,

I’m very new with this technology and i already have problems. I have  
to change something into a “haml” file but when i upload the changes,  
site goes down (it display something like “site is undergoing  
maitenance”). everything that i should do is add 2 (two) line of code:

.htext1  
Management Assistant

Can anyone tell me what should i do?

Thank you for your time.

---

<div class="post-metadata">

**Author:** ![silviuks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@silviuks](https://www.ruby-forum.com/u/silviuks)\
**Post date:** [April 8, 2008, 1:11am UTC](https://www.ruby-forum.com/t/haml-problems/134110/2 "2008-04-08T01:11:30Z")

</div>

Hi–

On Apr 7, 2008, at 1:38 PM, Si St wrote:

> Management Assistant
> 
> Can anyone tell me what should i do?
> 
> Thank you for your time.

Haml wants you to indent your contained elements by two spaces, so you  
need something more like:

.htext1  
Management Assistant

You can also do that inline for short things like this:

.htext1 Management Assistant

---

<div class="post-metadata">

**Author:** ![silviuks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@silviuks](https://www.ruby-forum.com/u/silviuks)\
**Post date:** [April 8, 2008, 1:31pm UTC](https://www.ruby-forum.com/t/haml-problems/134110/3 "2008-04-08T13:31:05Z")

</div>

I have another question…  
I’m trying to run that project on my computer, but it shows me the  
default index.html page. what do i have to install to run it?  
i already installed gems but still not working.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![silviuks](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bb73d2/32.png) [@silviuks](https://www.ruby-forum.com/u/silviuks)\
**Post date:** [April 8, 2008, 7:49pm UTC](https://www.ruby-forum.com/t/haml-problems/134110/4 "2008-04-08T19:49:56Z")

</div>

Si St wrote:

> I have another question…  
> I’m trying to run that project on my computer, but it shows me the  
> default index.html page. what do i have to install to run it?  
> i already installed gems but still not working.
> 
> Thank you for your help.

I assume that you have an index.html.haml file in the same folder? I  
just rename the index.html.erb to index.html.unused and the haml version  
gets picked up. When I’m totally happy with my haml, I delete the  
.unused file.
