1
0
Fork 0
forked from wezm/wezm.net

Fix JSON loading of articles

This commit is contained in:
Wesley Moore 2010-01-30 17:45:39 +11:00
parent 0aea6dae4b
commit 45ccebd015
2 changed files with 1 additions and 9 deletions

View file

@ -1,11 +1,3 @@
<ul class="articles">
<% sorted_articles[0..9].each do |article| %>
<%= render 'article', :article => article %>
<% end %>
</ul>
<div class="pagination">
<a href="/articles/#page-0" class="older">&laquo; Older</a>
|
<a href="/articles/#page-2" class="newer">Newer &raquo;</a>
</div>

View file

@ -29,5 +29,5 @@ jQuery(function() {
return false;
});
jQuery.get('/articles/index.json', {}, articles_loaded, 'json');
jQuery.get('json/articles.json', {}, articles_loaded, 'json');
});