2018年11月16日金曜日

#100DaysOfCode Day84

Day 84 November 14, 2018

Today's Progress:

  • Solved the problem on signing in to the local environment of dev.to
  • Add gitlab_url to permitted_attributes in policy

Thoughts:
Finally, I could sign in. It looks like restarting the spring server worked.

But by manually checking the behavior I found out that the input to the new field was not saved to DB. Validation was not triggered either.

I first thought I might have done db:migrate wrong way, but it was because I hadn't added the new field to permitted_attributes in policy file. I was looking at the files under controllers but the permission configurations were under policy folder.

Now I have everything working, but, the linter which runs automatically on commit started failing and it doesn't let me commit. (It was working on Day 81) Investigating...

Link to work:
Add GitLab field to Profile · Issue #1080 · thepracticaldev/dev.to

0 件のコメント:

コメントを投稿