1
我從我的MySQL數據庫使用Ruby獲得on Rails的數據那樣:Rails - 如何創建按字母順序排列的系統?
def all_specs
Specialization.order("title ASC").all;
end
現在,我想以按這樣的視圖文件這樣的數據:
<div class="nav-column">
<h3>A</h3>
<ul class="submenu">
<li><a href="#">All data that has title that starts with A</a></li>
</ul>
</div>
<div class="nav-column">
<h3>A</h3>
<ul class="submenu">
<li><a href="#">All data that has title that starts with B</a></li>
</ul>
</div>
and so on from A-Z
我怎樣才能實現那個?
偉大的思想! :) – Zippie