You need to get the "validation_group" method into ActiveRecord::Base
and therefore User before you call it.
-Rob
Rob,
Are you saying I need to do a
1 - require 'validation_group' in my User.rb
2 - Then add
ActiveRecord::Base.class_eval { extend
ValidationGroup::ActiveRecord::ActsMethod }
to my User.rb?
Thanks
No, I don't know what you "need" only what I "suspect" your code is missing. Probably not in your user.rb, but in an initializer somewhere. (config/initializers/validation_group.rb or in config/environment.rb) If you're modifying the plugin, you really need to understand the Ruby hook methods (like extended() and included()) or at least copy all the relevant bits when you're cargo-culting a solution.
--
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 athttp://groups.google.com/group/rubyonrails-talk?hl=en
.
--
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.