you just have to set the primary key manually. @user = User.new(params[:user]) @user.username = params[:username] @user.save
however for security reasons i would not advise to use mass-assignment for user-creation anyways. there could be stuff like that in there: >> params[:user][:is_admin] => "1" --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

