I use email for login , so I do this in the console/database seed file : User.create(email: 't...@test.com', password: 'password123', password_confirmation: 'password123') Then I log in with the "t...@test.com" and "password123"
On 22 July 2013 17:21, Dheeraj Kumar <a.dheeraj.ku...@gmail.com> wrote: > Create a new User object, then fill in the fields, and call save. > > -- > Dheeraj Kumar > > On Monday 22 July 2013 at 5:19 PM, Tushar Patil wrote: > > Hi, > I want to authentication for sign in and sign out, i add gem file and > create a user model using devise in rails3, i want to create a user for > first sign in and sign out, how can i create, any suggestion. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/1387c52c-3684-44f1-89b7-4cc93a2aadb5%40googlegroups.com > . > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/05B2251B87C649EAB0DE5C025F73EE8C%40gmail.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAJ%3Dox-ATBkyN%2BmENdH5mii9%2B%2BoFSnF0MXy9WN2ZBvZXGYgsn%3DQ%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.