[Rails] Re: Validations in the same Model

2011-04-27 Thread Junior Grossi
Apr 27, 9:41 am, Junior Grossi wrote: > Thanks! I will try do something like that. > > []s > > On Apr 26, 7:43 pm, Philip Hallstrom wrote: > > > > > > > > > > Thanks for your reply. I read about STI and solve my problem. > > > > BUT no

[Rails] Re: Validations in the same Model

2011-04-27 Thread Junior Grossi
; > Or something like that... might need to check the class type instead... that > should get you started though. > > > > > > > > > Thanks! > > > On Apr 26, 1:58 pm, Philip Hallstrom wrote: > >> On Apr 26, 2011, at 9:35 AM, Junior Grossi wrote: &

[Rails] Re: Validations in the same Model

2011-04-26 Thread Junior Grossi
for User. Thanks! On Apr 26, 1:58 pm, Philip Hallstrom wrote: > On Apr 26, 2011, at 9:35 AM, Junior Grossi wrote: > > > Hi all, > > > I am newbie in Rails and new at this group. I am with a problem with > > validation. I searched at Google but I cant see anything.

[Rails] Validations in the same Model

2011-04-26 Thread Junior Grossi
Hi all, I am newbie in Rails and new at this group. I am with a problem with validation. I searched at Google but I cant see anything. I have just one Model: User. I have 2 CRUD's (controllers and views): Representatives and Users... Users CRUD is ok but Representatives not. I have different vali