Emacs and ruby on rails: some bugs

Hi all,

I’m trying to install emacs with rails support. But it has a few
quirks. For example the snippets won’t work. I can select them from a
menu and then they work fine. But for example when I do: flash
nothing happens. What could this be?

Also in rhtml mode: all text between two ruby tags (<%= %>) is grey.
And the background is also grey. So I can’t read anything. Is it
possible to change these colors?

Thanks in advance! This is my .emacs:

Added some stuff to my .emacs: