nishikawa1031 / mainApp

2022/12/4start
https://job-in-japan.com
0 stars 0 forks source link

ファイルを複数アップロードできることを確認する。不具合があったら修正する #120

Open nishikawa1031 opened 1 month ago

nishikawa1031 commented 1 month ago
<header role="banner" style="color: rgb(240, 240, 240); background: rgb(204, 0, 0); padding: 0.5em 1.5em; font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><h1 style="overflow-wrap: break-word; margin: 0.2em 0px; line-height: 1.1em; font-size: 2em;">NameError in Applicants#update</h1></header><main role="main" id="container" style="box-sizing: border-box; width: 1440px; padding: 0px 1.5em; color: rgb(51, 51, 51); font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; margin-bottom: 148px;"><p style="font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px;">Showing<span> </span><i>/Users/tanishi/Projects/calendar_project/mainApp/app/views/applicants/_form.html.erb</i><span> </span>where line<span> </span><b>#26</b><span> </span>raised:</p><pre style="font-size: 11px; white-space: pre-wrap;"><code>undefined local variable or method `form' for #&lt;ActionView::Base:0x0000000004bcd0&gt;

    '.freeze;@output_buffer.append=( form.label :files, class: "form-label" );@output_buffer.safe_append='
                                     ^^^^
Did you mean?  for
               fork</code></pre><div class="source " id="frame-source-0-0" style="border: 1px solid rgb(217, 217, 217); background: rgb(236, 236, 236); max-width: 978px;"><div class="info" style="margin: 0px; padding: 0.5em;">Extracted source (around line<span> </span><strong style="margin: 0px; padding: 0px;">#26</strong>):</div><div class="data" style="margin: 0px; padding: 0px; font-size: 10.4px; overflow: auto; background-color: rgb(255, 255, 255);">
24 25 26 27 28 29 | <div class="mb-3">     <%= form.label :files, class: "form-label" %>     <%= form.file_field :files, multiple: true, class: "form-control" %>   </div>
-- | --

</div></div><p style="font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px;">Trace of template inclusion: #&lt;ActionView::Template app/views/applicants/edit.html.erb locals=[]&gt;</p><p style="font-family: helvetica, verdana, arial, sans-serif; font-size: 13px; line-height: 18px;"><code>Rails.root: /Users/tanishi/Projects/calendar_project/mainApp</code></p><div id="traces-0"><a href="http://localhost:8080/applicants/5#" onclick="hide('Framework-Trace-0');hide('Full-Trace-0');show('Application-Trace-0');; return false;" style="color: rgb(152, 9, 5);">Application Trace</a><span> </span>|<span> </span><a href="http://localhost:8080/applicants/5#" onclick="hide('Application-Trace-0');hide('Full-Trace-0');show('Framework-Trace-0');; return false;" style="color: rgb(152, 9, 5);">Framework Trace</a><span> </span>|<span> </span><a href="http://localhost:8080/applicants/5#" onclick="hide('Application-Trace-0');hide('Framework-Trace-0');show('Full-Trace-0');; return false;" style="color: rgb(152, 9, 5);">Full Trace</a><div id="Application-Trace-0" style="display: block;"><code class="traces" style="font-size: 11px;"><a class="trace-frames trace-frames-0" data-exception-object-id="155340" data-frame-id="0" href="http://localhost:8080/applicants/5#" style="color: rgb(102, 102, 102); overflow-wrap: break-word;">app/views/applicants/_form.html.erb:26</a><br><a class="trace-frames trace-frames-0" data-exception-object-id="155340" data-frame-id="16" href="http://localhost:8080/applicants/5#" style="color: rgb(102, 102, 102); overflow-wrap: break-word;">app/views/applicants/edit.html.erb:6</a><br><a class="trace-frames trace-frames-0" data-exception-object-id="155340" data-frame-id="53" href="http://localhost:8080/applicants/5#" style="color: rgb(102, 102, 102); overflow-wrap: break-word;">app/controllers/applicants_controller.rb:48:in `rescue in update'</a><br><a class="trace-frames trace-frames-0" data-exception-object-id="155340" data-frame-id="54" href="http://localhost:8080/applicants/5#" style="color: rgb(102, 102, 102); overflow-wrap: break-word;">app/controllers/applicants_controller.rb:40:in `update'</a></code></div></div></main>NameError in Applicants#update
Showing /Users/tanishi/Projects/calendar_project/mainApp/app/views/applicants/_form.html.erb where line #26 raised:

undefined local variable or method `form' for #<ActionView::Base:0x0000000004bcd0>

    '.freeze;@output_buffer.append=( form.label :files, class: "form-label" );@output_buffer.safe_append='
                                     ^^^^
Did you mean?  for
               fork
Extracted source (around line #26):
24
25
26
27
28
29

  <div class="mb-3">
    <%= form.label :files, class: "form-label" %>
    <%= form.file_field :files, multiple: true, class: "form-control" %>
  </div>

Trace of template inclusion: #<ActionView::Template app/views/applicants/edit.html.erb locals=[]>

Rails.root: /Users/tanishi/Projects/calendar_project/mainApp

[Application Trace](http://localhost:8080/applicants/5#) | [Framework Trace](http://localhost:8080/applicants/5#) | [Full Trace](http://localhost:8080/applicants/5#)
[app/views/applicants/_form.html.erb:26](http://localhost:8080/applicants/5#)
[app/views/applicants/edit.html.erb:6](http://localhost:8080/applicants/5#)
[app/controllers/applicants_controller.rb:48:in `rescue in update'](http://localhost:8080/applicants/5#)
[app/controllers/applicants_controller.rb:40:in `update'](http://localhost:8080/applicants/5#)