質問編集履歴
2
エラー内容の追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,55 @@
|
|
61
61
|
どのように書けばいいのかわからないです。
|
62
62
|
|
63
63
|
どうかご教示いただけますようよろしくお願いします。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
追記
|
68
|
+
|
69
|
+
上手くいかないとはRailsのエラーがこのように出てしまいます。
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
ActiveRecord::RecordNotFound in EventsController#show
|
74
|
+
|
75
|
+
---
|
76
|
+
|
77
|
+
Couldn't find Event with 'id'= + calEvent
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
Extracted source (around line #13):
|
82
|
+
|
83
|
+
11
|
84
|
+
|
85
|
+
12 def show
|
86
|
+
|
87
|
+
13 @event = Event.find params[:id]
|
88
|
+
|
89
|
+
14 end
|
90
|
+
|
91
|
+
15
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
Parameters:
|
96
|
+
|
97
|
+
{"id"=>" + calEvent", "format"=>"id"}
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
以上がエラー内容です。
|
102
|
+
|
103
|
+
またブラウザのURLは
|
104
|
+
|
105
|
+
http://localhost:3000/events/%20+%20calEvent.id
|
106
|
+
|
107
|
+
となっており、やりたいのはこのEventレコードのidカラムに入っている1を挿入し
|
108
|
+
|
109
|
+
http://localhost:3000/events/1
|
110
|
+
|
111
|
+
としたいです。
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
引き続きよろしくお願いします。
|
1
タイトルに追記
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
javascript(coffeescript)での[:id]パラムスの挿入式の書き方
|
1
|
+
Ruby on Rails内javascript(coffeescript)での[:id]パラムスの挿入式の書き方
|
test
CHANGED
File without changes
|