質問編集履歴
3
エラー文追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -66,4 +66,14 @@
|
|
66
66
|
]
|
67
67
|
});
|
68
68
|
});
|
69
|
-
```
|
69
|
+
```
|
70
|
+
|
71
|
+
undefined local variable or method `include_gon' for #<#<Class:0x007ffcf191a0f0>:0x007ffcf6769288>
|
72
|
+
Extracted source (around line #7):
|
73
|
+
|
74
|
+
|
75
|
+
<title>Ticket</title>
|
76
|
+
<%= csrf_meta_tags %>
|
77
|
+
<%= include_gon%>
|
78
|
+
<%= Gon::Base.render_data({}) %>
|
79
|
+
<!--JS内でRailsの変数を使用-->
|
2
参考サイト編集
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|
1
参考サイトの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -3,6 +3,9 @@
|
|
3
3
|
今gemのgonを使い試しているのですが、以下のエラーが出てしまい原因がわかりません。
|
4
4
|
ご存じの方、ご教授お願いいたします。
|
5
5
|
|
6
|
+
参考にしたサイトはこちらになります。
|
7
|
+
[gonを使ったRailsとJavascriptの連携について](https://qiita.com/s_nakamura/items/5d153f7d9db1b1190296)
|
8
|
+
|
6
9
|
```html
|
7
10
|
<!DOCTYPE html>
|
8
11
|
<html>
|