質問編集履歴

1

エラー追加

2016/07/07 01:34

投稿

rennta
rennta

スコア8

test CHANGED
File without changes
test CHANGED
@@ -4,11 +4,65 @@
4
4
 
5
5
 
6
6
 
7
+ ###サーバーラログ
8
+
9
+ ```ruby
7
10
 
8
11
 
9
12
 
10
13
 
11
14
 
15
+ Started GET "/" for 127.0.0.1 at 2016-07-07 10:32:42 +0900
16
+
17
+ Processing by ItemsController#index as HTML
18
+
19
+ Rendering 500 with exception: wrong number of arguments (0 for 1)
20
+
21
+ Rendered errors/error_500.html.erb within layouts/application (1.3ms)
22
+
23
+ User Load (0.6ms) SELECT "users".* FROM "users" WHERE "users"."deleted_at" IS NULL AND "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT 1 [["id", 1]]
24
+
25
+ Completed 500 Internal Server Error in 280ms
26
+
27
+
28
+
29
+ ActionView::Template::Error (No Ransack::Search object was provided to search_form_for!):
30
+
31
+ 95: <li><a href=/items/new/><i class="fa fa-pencil fa-lg"></i></a></li>
32
+
33
+ 96: </ul>
34
+
35
+ 97: <form class="navbar-form navbar-left" action="/items/search_index" role="search">
36
+
37
+ 98: <%= search_form_for @search, url:items_search_index_url do |f| %>
38
+
39
+ 99: <span class="hidden-xs hidden-sm hidden-md">
40
+
41
+ 100: <div class="form-group">
42
+
43
+ 101: <%= f.select :category_id_eq, options_from_collection_for_select(Category.all.sort{|a, b| a.code <=> b.code},
44
+
45
+ app/views/layouts/application.html.erb:98:in `_app_views_layouts_application_html_erb__4400602654175910523_70282939924860'
46
+
47
+ app/controllers/application_controller.rb:321:in `render_500'
48
+
49
+
50
+
51
+
52
+
53
+ Processing by ErrorsController#show as HTML
54
+
55
+ Rendering 500 with exception: No Ransack::Search object was provided to search_form_for!
56
+
57
+ Rendered errors/error_500.html.erb within layouts/application (1.1ms)
58
+
59
+ Completed 500 Internal Server Error in 72ms
60
+
61
+
62
+
63
+
64
+
65
+ ```
12
66
 
13
67
  ###該当のソースコード
14
68