Leonel *.* wrote in post #955895: >> Are you using an authentication library such as Authlogic for this? If >> not, I highly recommend doing so. > Nope, I'm using a digest sha2 password with salt.
That's orthogonal to whether you're using an authentication library. > I'll take a look at > Authlogic. Do. Particularly as a beginner, you don't want to implement your own authentication system when so many other people have already done it. > >> 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. > >> Do you have a question here? I'm not sure I understand why you're >> posting. > Sorry, forgot the question, the question of course was: what's the best > way to create an account and then a username with account_id(the one > that was just created) by using the Signup controller? 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. 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.

