- move “next page” link to helper
<tr>, it boost performance.
Just curious: any benchmarks regarding the boost provided by
Is this a typo? in app/views/list/list.erb render_topic_posts_count
in app/helpers/topics_helper.rb render_topic_posts_coount
Hi, you can try this code
<% @posts.each do |post %> <li> <%= post.titlew %> </li> <% end %>
<%= content_tag_for( :li, @posst ) do |post| %> <%= post.title %> <% end %>
the check the log
.sub necessary? Can’t a link be passed a format instead?
it’s the original design. so it’s up to you
I think it shouldn’t be there, but if it’s the original way of doing things we can accept this and fix that later in a follow up.
@eviltrout .sub is from here …
There is a typo here as well:
list.topics.lenth. But why pass in the number of topics as an argument? Wouldn’t it be easier to call
list.topics.length in the helper?
if you call topics.length, it wouldn’t have cache …
This would become query in the helper
Any idea why it can’t be merged?
okay…now i rebase master…