Hello All, I have a table for which i need to tag and i am applying acts_as_taggable for that I have a table called localities and I created a table called tags and tags_localities ,Now my requirement is i need to create new tags and i should be able to add sub tags to the new tags So its basically applying Tagging on tags agian can any one give me a idea of how can i do this Thanks Jagan --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Hi, i was trying the acts_as_taggable gem, without success i''ve installed the gem (gem install acts_as_taggable), added "gem ''acts_as_taggable''" at the end of environment.rb, and added ''acts_as_taggable'' into my Artigo model but when i try to use my model now, i get this error message: NoMethodError: undefined method `acts_as_taggable'' for Artigo:Class any ideas? thanks, Paulo Geyer --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
write some tests to verify that the module in acts as taggable have been required and included in the model -- 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 -~----------~----~----~----~------~----~------~--~---
On Nov 7, 2007 12:29 PM, Paŭlo Geyer <paulogeyer@gmail.com> wrote:> > Hi, i was trying the acts_as_taggable gem, without success > > i've installed the gem (gem install acts_as_taggable), > added "gem 'acts_as_taggable'" at the end of environment.rb, > and added 'acts_as_taggable' into my Artigo model > > but when i try to use my model now, i get this error message: > NoMethodError: undefined method `acts_as_taggable' for Artigo:Class > > any ideas?Did you restart your server? It's required after modifying environment.rb. -- Greg Donald http://destiney.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@googlegroups.com To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes, i''ve restarted my server, as it seems, acts_as_taggable was loaded without problems. I did an test adding "gem ''foo''" to see if i get an error message, and i got. So it is there i''m still trying to figure out what is happening here, if you have any other suggestions, please tell me thanks On 7 nov, 16:35, "Greg Donald" <gdon...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Nov 7, 2007 12:29 PM, Paŭlo Geyer <pauloge...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi, i was trying the acts_as_taggable gem, without success > > > i''ve installed the gem (gem install acts_as_taggable), > > added "gem ''acts_as_taggable''" at the end of environment.rb, > > and added ''acts_as_taggable'' into my Artigo model > > > but when i try to use my model now, i get this error message: > > NoMethodError: undefined method `acts_as_taggable'' for Artigo:Class > > > any ideas? > > Did you restart your server? It''s required after modifying environment.rb. > > -- > Greg Donaldhttp://destiney.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@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---