A

プログラミングの学習記録

【本日の学習内容:共同開発】

引き続き、共同開発を進めました。

 今日はデータベース(アソシエーション)勉強会に参加しました。

共同開発に取り組みつつ、アソシエーションのQiita記事に沿って実際に手を動かしながら、理解を深めたいと思いました。

 

 

繰り返し処理とlink_toの組み合わせ

<tbody>
<% @awstexts.each.with_index(1) do |awstext, i| %>
<tr>
<th scope="row" class=""><%= i %></th>
<td class="break-word"><%= link_to awstext.title, awstext_path(awstext.id) %></td>
<td class="text-nowrap">
 
</td>
</tr>
<% end %>
</tbody>