I'm using the haml gem and it's great, been using it for a while and I
I've got a problem trying to display the flash messages, if I do the
- if flash[:notice]
- else if flash[:error]
You don't need to use "- end" in Haml. Use indentation instead:
- if foo?
Ok, so I take out "- end" and I get
default.haml:21: syntax error, unexpected $end, expecting kEND
So which is it? What do I have to do to get around this? My
indentation is perfect, so I don't see what else I can do.
Incidentally this appears to be a new problem with the latest version
of haml. Before I was using "- end" and it worked perfectly.
Any help appreciated.