質問編集履歴
2
ファイル名を訂正
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
参考したサイトを追加
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
|
-
|
37
|
+
models:
|
38
|
-
|
38
|
+
task: タスク
|
39
|
-
|
39
|
+
attributes:
|
40
|
-
|
40
|
+
task:
|
41
|
-
|
41
|
+
id: ID
|
42
|
-
|
42
|
+
name: 名称
|
43
|
-
|
43
|
+
description: 詳しい説明
|
44
|
-
|
44
|
+
created_at: 登録日時
|
45
|
-
|
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
|