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?
try following:
include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper
On Aug 1, 3:14 pm, Drew B. [email protected]
Ajit Singh wrote:
try following: include ActionView::Helpers::UrlHelper include ActionView::Helpers::TagHelper On Aug 1, 3:14 pm, Drew B. [email protected]
include ActionView::Helpers::FormTagHelper did the trick.
Thanks!
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.