I’m working on trying to get Devise working in my Rails app. I’m a new Rails user. What’s the proper way to add a few default users?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The normal way to set up any default data in Rails is by adding the data in
db/seeds.rb:Depending on your validations and devise features you might need to enter more fields. In order to use that data you just call
rake db:seed.