HAML problems

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.

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

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.

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.