I have a bunch of College
objects. I print them all out here: http://www.collegeanswerz.com/colleges. (excluding the alphabetical tab. for that I hand coded the HTML)
Take the Rank
tab as an example. (The Size
and Table
tabs are analogous to this code.)
<div class="tab-content">
<div id="national_universities2" class="tab-pane active">
<h3>National Universities</h3>
<nav class="list">
<ol>
<% @national_university_rank.each do |school| %>
<li value="<%= school.us_news_ranking %>"><%= link_to school.name, '/'+school.url %></li>
<% end %>
</ol>
</nav>
<br />
<p class="usnews">Ranks according to <%= link_to "US News", "http://colleges.usnews.rankingsandreviews.com/best-colleges" %>.</p>
</div>
<div id="liberal_arts_colleges2" class="tab-pane">
<h3>Liberal Arts Colleges</h3>
<nav class="list">
<ol>
<% @liberal_arts_college_rank.each do |school| %>
<li value="<%= school.us_news_ranking %>"><%= link_to school.name, '/'+school.url %></li>
<% end %>
</ol>
</nav>
<br />
<p class="usnews">Ranks according to <%= link_to "US News", "http://colleges.usnews.rankingsandreviews.com/best-colleges" %>.</p>
</div>
</div>
There are a couple of colleges that I deleted using rails console
. They aren't showing up in the development version of this web page, but they are in the production version. Why is this?