0
は、あなたがattributes_table
、例えばRuby ActiveAdminのattributes_table行を2列以上でどのように表示しますか? ActiveAdminで
show do
attributes_table do
row :name
row :gender
row :email
row :phone_number
end
end
を持つことができますあなたは以下のように、行の束を持つテーブルを持っているでしょう:
Name Joe Smith
Gender Male
Email [email protected]
Phone Number 07722123456
生成されたHTMLが
<table>
<tbody>
<tr class="row row-name">
<th>Name</th>
<td>Joe Smith</td>
</tr>
<tr class="row row-name">
<th>Gender</th>
<td>Male</td>
</tr>
<tr class="row row-name">
<th>Email</th>
<td>[email protected]</td>
</tr>
<tr class="row row-name">
<th>Phone Number</th>
<td>07722123456</td>
</tr>
</tbody>
</table>
のように見えます
これらの属性を2列に表示する場合は、
Name Joe Smith Gender Male
Email [email protected] Phone Number 07722123456
これをActiveAdminで簡単に達成するにはどうすればよいですか?
おかげ