ref: dockerize
app/views/profile/_profile_network_activities.html.erb
<% activities.each do |activity| %> <%= render :partial => 'profile_activity', :locals => { :activity => activity, :tab_action => 'network' } if activity.visible? %> <% end %> <% if activities.current_page < activities.total_pages %><%= button_to_remote :add, _('View more'), :url => {:action => 'view_more_activities', :page => (activities.current_page + 1), :offsets => @offsets, :kind => 'network'}, :update => "profile_network_activities_page_#{activities.current_page}" %><% end %>