0
여기에 어떤 문제가 있는지 잘 모르겠지만 오늘은 새로운 테스트 프로젝트를 여러 개 만들었 기 때문에 rails g scaffold [model]
을 실행하여 생성 된 코드와 분명히 관련이 있습니다. 내가 비계를 사용했던 것들.레일 스 캐 폴딩으로 나사 식 서식 지정
여기는 picture of my index page입니다. 왼쪽 하단의 링크는 (New Logfile (/logfiles/new
으로 출력되고 <td>
'이름'은 페이지 중간에 있습니다 - 양식에서도 입력 텍스트가 모두 미러링됩니다. 즉, 입력 할 때 오른쪽과 왼쪽으로 간다. 무슨 일이야? 여기
view
index
대해 :
<h1>All Logfiles</h1>
<hr />
<table>
<tr>
<th></th>
<th></th>
<th></th>
<th>Name</th>
</tr>
<% @logfiles.each do |logfile| %>
<tr>
<td><%= logfile.name %></td>
<td><%= link_to 'Show', logfile %></td>
<td><%= link_to 'Edit', edit_logfile_path(logfile) %></td>
<td><%= link_to 'Destroy', logfile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</table>
<br />
<%= link_to 'New Logfile', new_logfile_path %>