Hi,
I'm trying to call a helper method form a controller. The helper
method uses the Haml helper methods capture_haml, haml_tag, etc But
I'm runnning into errors like: "undefined method 'capture_haml'" and
so.
Example:
class FooController
def update
render :string => self.class.helpers.foobar_string
end
end
module FooHelper
def foobar_string
capture_haml do
haml_tag :h1, 'hello world'
end
end
end
Is there a way to make this work?
Thanks, Seb
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.