public
Description: The full source code for projects used in Railscasts episodes.
Home | Edit | New

Episode 124 - Beta Invitations - User Signup

Ok, if an invitation is required to sign up, how do you sign up an initial, “admin” user?

I ran the rake db:fixtures:load, and I looked at the rake source, but the passwords are not listed, so I have no idea what they are ;)

I tried putting an invitation token called ‘test’ into the invitations table, then tried http://localhost/signup/test.

I get :

  1. invitation is required
  2. Invitation has already been taken

I dumped the params, and the invitation_token is blank, so it doesn’t seem to be getting picked up from the browser url.

  • EDIT.. actually the params ARE being passed to the ‘Users’ ‘new’ action, but apparently the authenticaton is failing somewhere.

I’m running rails 2.2.2.

Any ideas ?

Mike

Last edited by mstram, Sun Jan 04 11:28:00 -0800 2009
Home | Edit | New
Versions: