Franco Brusatti
2008-Mar-06 20:29 UTC
Unitialized constant ActionView::Helpers::TagHelper::Set
Hi all, I write the following test to a simple plugin require ''rubygems'' require ''test/unit'' require File.dirname(__FILE__) + ''/../lib/meta_tags'' require ''action_view/helpers/tag_helper'' class MetaTagsTest < Test::Unit::TestCase include MetaTagHelper include ActionView::Helpers::TagHelper . . . end and when I run rake in the root plugin directory I get the following error /usr/bin/ruby18 -Ilib:lib "/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" "test/meta_tags_test.rb" /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/tag_helper.rb:11: uninitialized constant ActionView::Helpers::TagHelper::Set (NameError) from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'' from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'' from ./test/meta_tags_test.rb:8 I forget some require before? somebody can help me? thanks in advance. -- Posted via http://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 -~----------~----~----~----~------~----~------~--~---
Franco Brusatti
2008-Mar-06 21:21 UTC
Re: Unitialized constant ActionView::Helpers::TagHelper::Set
I respond to myself require ''set'' :) Franco Brusatti wrote:> I write the following test to a simple plugin > > require ''rubygems'' > require ''test/unit'' > > require File.dirname(__FILE__) + ''/../lib/meta_tags'' > require ''action_view/helpers/tag_helper'' > > class MetaTagsTest < Test::Unit::TestCase > > include MetaTagHelper > include ActionView::Helpers::TagHelper > > . . . > > and when I run rake in the root plugin directory I get the following > error > > /usr/bin/ruby18 -Ilib:lib > "/usr/lib/ruby/gems/1.8/gems/rake-0.8.1/lib/rake/rake_test_loader.rb" > "test/meta_tags_test.rb" > > /usr/lib/ruby/gems/1.8/gems/actionpack-2.0.2/lib/action_view/helpers/tag_helper.rb:11: > uninitialized constant ActionView::Helpers::TagHelper::Set (NameError) >-- Posted via http://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 -~----------~----~----~----~------~----~------~--~---