title: How can I limit the number of records to load in view???
body: <p>This code shows all the records of CommunityTopic that belongs to current Community.
  How can I limit the numbers to 10 records to display here?</p>
  
  <pre><code>&lt;ul&gt;
    &lt;% @community.community_topics.each do |topic| %&gt;
      &lt;li&gt;
      &lt;%= link_to topic.title, community_topic_path(@community, topic) %&gt;
      &lt;%= link_to topic.user.user_profile.nickname, community_topic_path(@community, topic) %&gt;
      &lt;/li&gt;
    &lt;% end %&gt;
  &lt;/ul&gt;
  </code></pre>