teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

2

ファイル名を訂正

2019/06/16 14:37

投稿

kenya.yasuhara
kenya.yasuhara

スコア17

title CHANGED
File without changes
body CHANGED
@@ -4,7 +4,7 @@
4
4
  `can not load translations from /Users/xxxxx/taskleaf/config/locales/ja.yml: #<Psych::SyntaxError: (<unknown>): mapping values are not allowed in this context at line 5 column 41>`
5
5
 
6
6
  ### 困っていること
7
- 問題がある箇所としてtasks/new.html.slimとconfig/ja.ymlを確認したが、文法的にどちらにも問題があるように見えず、解決方法がわからないこと
7
+ 問題がある箇所としてtasks/new.html.slimとconfig/locales/ja.ymlを確認したが、文法的にどちらにも問題があるように見えず、解決方法がわからないこと
8
8
 
9
9
  - new.html.slim
10
10
  ```slim
@@ -24,7 +24,7 @@
24
24
 
25
25
  ```
26
26
 
27
- - config/ja.yml
27
+ - config/locales/ja.yml
28
28
  ```yml
29
29
  ja:
30
30
  activerecord:

1

参考したサイトを追加

2019/06/16 14:37

投稿

kenya.yasuhara
kenya.yasuhara

スコア17

title CHANGED
File without changes
body CHANGED
@@ -34,13 +34,17 @@
34
34
  restrict_dependent_destroy:
35
35
  has_one: "%{record}が存在しているので削除できません"
36
36
  has_many: "%{record}が存在しているので削除できません"
37
- models:
37
+ models:
38
- task: タスク
38
+ task: タスク
39
- attributes:
39
+ attributes:
40
- task:
40
+ task:
41
- id: ID
41
+ id: ID
42
- name: 名称
42
+ name: 名称
43
- description: 詳しい説明
43
+ description: 詳しい説明
44
- created_at: 登録日時
44
+ created_at: 登録日時
45
- updated_at: 更新日時
45
+ updated_at: 更新日時
46
- ```
46
+ ```
47
+
48
+ ### 参考にしたサイト
49
+ - https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/ja.yml
50
+ - https://qiita.com/ngron/items/968638fe85cbab41c486