Hi, I have a problem in the guts of Rails. I have a :has_many association. The :has_many method calls the method "add_multiple_associated_save_callbacks" and this is where I have problems. In the line "validate method_name" my application crashes with a NoMethodError. What is the "validate" method? From which module does it come? Best regards Bernd -- 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 -~----------~----~----~----~------~----~------~--~---
> I have a problem in the guts of Rails. I have a :has_many association. > The :has_many method calls the method > "add_multiple_associated_save_callbacks" and this is where I have > problems. In the line "validate method_name" my application crashes with > a NoMethodError. What is the "validate" method? From which module does > it come?Can you post the code? -- 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 -~----------~----~----~----~------~----~------~--~---
Moises Deniz wrote:>> I have a problem in the guts of Rails. I have a :has_many association. >> The :has_many method calls the method >> "add_multiple_associated_save_callbacks" and this is where I have >> problems. In the line "validate method_name" my application crashes with >> a NoMethodError. What is the "validate" method? From which module does >> it come? > > Can you post the code?The problem is that I have a class that inherits already from another class and anyway I want to use some functions of some modules of the ActiveRecord package in that class, e.g. from ActiveRecord::Associations and ActiveRecord::Associations::ClassMethods. So I call has_many :things and then it crashes in line 979 of the file associations.rb of the ActiveRecord library. The line has the content "validate method_name". Cheers Bernd -- 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 -~----------~----~----~----~------~----~------~--~---