Skip to content

Instantly share code, notes, and snippets.

@katsumata-ryo
Last active September 8, 2018 17:40
Show Gist options
  • Save katsumata-ryo/b5b1a05dddda42e95f2104d3773310ac to your computer and use it in GitHub Desktop.
Save katsumata-ryo/b5b1a05dddda42e95f2104d3773310ac to your computer and use it in GitHub Desktop.
day.2
$ rails generate sorcery:install
Running via Spring preloader in process 29650
create config/initializers/sorcery.rb
gsub config/initializers/sorcery.rb
generate model User --skip-migration
Running via Spring preloader in process 29679
invoke active_record
create app/models/user.rb
invoke test_unit
create test/models/user_test.rb
create test/fixtures/users.yml
insert app/models/user.rb
insert app/models/user.rb
# チュートリアルにそってコード修正
# https://github.com/Sorcery/sorcery/wiki/Simple-Password-Authentication
# email_validater gem を追加
# https://github.com/balexand/email_validator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment