Displaying 1 result from an estimated 1 matches for "flasherror".
2008 Aug 25
3
haml says yes, rails says no
I''m using the haml gem and it''s great, been using it for a while and I
love it.
I''ve got a problem trying to display the flash messages, if I do the
following:
- if flash[:notice]
#flashNotice
=flash[:notice]
- else if flash[:error]
#flashError
=flash[:error]
- end
I get
You don''t need to use "- end" in Haml. Use indentation instead:
- if foo?
%strong Foo!
- else
Not foo.
Ok, so I take out "- end" and I get
default.haml:21: syntax error, unexpected $end, expecting kEND
So which is it? Wh...