i got a problem with validation and sti class Account < ActiveRecord::Base validates_uniqueness_of :field1 ... end User < Account ... end i created a few User models in the bootstrap file and i noticed that the validation does not work. Do you know why? -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
What version of rails are you using? I just read "This seems to be a regression issue on Rails 2.3, works fine on previous rails versions" On Mar 8, 4:10 pm, eugenio <eugenio.mode...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> i got a problem with validation and sti class > > Account < ActiveRecord::Base > validates_uniqueness_of :field1 > ... > end > > User < Account > ... > end > > i created a few User models in the bootstrap file and i noticed that > the validation does not work. > Do you know why?-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@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.
On 8 Mar, 22:14, Jay P <bosox...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What version of rails are you using?i''m using rails 2.3.5 i tried to insert some User models with the web interface and the validation works there. maybe it''s only an sql cache issue.> > I just read "This seems to be a regression issue > on Rails 2.3, works fine on previous rails versions" >-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.