I don't know how to do it... I tried everything but I get no output. I tried including 'Haml::Helpers' in my FormElementsRenderer and then
@context = ActionView::Base.new @context.init_haml_helpers but doing @context.html_tag was useless. I moved again all the methods into Application_Helper module because I thing I need to learn more ruby before doing those things (I have no idea what the hell is a context). On 13 mayo, 02:56, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote: > All the Haml helpers, including haml_tag, are included into the > ActionView::Base object that's used as the context for the template > rendering. You need to get a reference to this object and call #haml_tag > on it. > > [EMAIL PROTECTED] wrote: > > I'm working in some helpers with the method haml_tag but i don't know > > how to use it outside of a module helper. > > > I'm making a class that helps me rendering forms (I know RoR already > > have that but I don't like these, and I'm making my own error > > handling). > > I was making something like that 'http://railscasts.com/episodes/101 > > ' but the problem is that haml_tag method doesn't work out of a helper > > module. > > > Any tip? > > > haml is GREAT, but still learning. > > > # my current code, but not needed for the answer I'm looking for > >http://pastie.caboo.se/195809 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
