Leonel *.* wrote in post #955920:
>>>> So?  You still need models.
>>> You mean, a model that references other models?
>> Huh?  You seemed to be saying you didn't have User and Account models.
> Yes, I do. According to Colin, the validation will be taken from User
> and Account models.

What should be getting validated?

>
>> Why do you need both User and Account?  From the logic you posted, it
>> looks like they're always going to be in a 1:1 relationship, which means
>> you only need one.
>
> The user that signs up and creates the account is the admin user for the
> account. Then, he can send email invitations to his staff (users) to
> also use the application.
>
> Account has many Users
> User belongs to Account

Then yeah, you need both classes.  It wasn't obvious from the code you 
posted.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to