Leonel *.* wrote in post #955883:
> The application I'm creating works like this:
> There is an account (a company)
> Users belong to the Account (company)
>
> So when somebody wants to sign up and create an account, it should
> create an account, then create a user.
>
> username(User)
> password(Users)
> company(Account)

Are you using an authentication library such as Authlogic for this?  If 
not, I highly recommend doing so.

>
> So I created a Signup controller. I want to add validation but I don't
> have a model (for unique and presence validation)for it because the
> signup controller is supposed to create User and Account.

So?  You still need models.

>
> class SignupController < ApplicationController
[...]

Do you have a question here?  I'm not sure I understand why you're 
posting.

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