Advertisement
Guest User

Database in ruby? HELP

a guest
Feb 1st, 2014
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.57 KB | None | 0 0
  1. #Simplest sign up & login form ever!
  2.  
  3. #Sign up process
  4. print "Username: "
  5. user = gets.chomp
  6.  
  7. print "Password: "
  8. pass = gets.chomp
  9.  
  10. =begin
  11. Now I want the given information to be saved in a file.
  12. And later the program should be able to pull back the saved data.
  13. So the user can sign in.
  14. =end
  15.  
  16. #Login process
  17.  
  18. print "Username: "
  19. user = gets.chomp
  20.  
  21. print "Password: "
  22. pass = gets.chomp
  23.  
  24. =begin
  25. Now the shell should look for the given username and password on the database and check if it's correct
  26. And if it is, sign in else puts try again or something
  27. =end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement