I have this sort of working, though I doubt this is a very good way.
I added a parse_haml method that I found posted for a different use.
I threw the method into application.rb and made it a helper...
application.rb
-----------------
def parse_haml(string)
engine = Haml::Engine.new(string)
engine.render
end
helper_method :parse_haml
Now I can pull a string formatted as Haml out of the database and
display it appropriately. Even cooler is that I added a form observer
and have a live preview of the textarea going as I type. I also made
a background image for the textarea that shows 2 space columns to make
the textarea into a usable text editor.
The one thing that doesn't work is that none of the ActionView helper
methods are available. Is it possible to reinsert ActionView into the
chain?
Best Regards,
Bilson