Re: Using FormTagHelper methods outside of a view

Ajit
Fri, 01 Aug 2008 19:38:05 -0000

try following:

include ActionView::Helpers::UrlHelper
	include ActionView::Helpers::TagHelper

On Aug 1, 3:14 pm, Drew Batshaw
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> I am trying to use the check_box_tag method outside of a view to build
> an HTML string.  When I call
> "ActionView::Helpers::FormTagHelper.check_box_tag(..)" I get
"error
> undefined method `check_box_tag'' for
> ActionView::Helpers::FormTagHelper:Module"
>
> Any ideas what I am doing wrong?
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---