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 -~----------~----~----~----~------~----~------~--~---
