ç®çï¼èªè¨¼æ©è½(ã¦ã¼ã¶ã¯äºãDBã«ç»é²) åè http://starryskylogic.blogspot.jp/2012/04/ruby-on-rails32.html 1.Gemfileã«bcryptrubyã追å Gemfileå ã®gem 'bcrypt-ruby', '~>3.0.0~ã®ã³ã¡ã³ãã¢ã¦ããå¤ããä¸ã§bundle install 2.User modelã®ä½æ rails g model user login_name:string password_digest:string rake db:migrate â»password_digestã®ã«ã©ã åã¯å¤æ´ãã¦ã¯ãããªã 3./app/model/users.rbã«has_secure_passwordã追å class User < ActiveRecord::Base has_secure_password at
{{#tags}}- {{label}}
{{/tags}}