tnantoka/blog

View on GitHub
app/controllers/home_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class HomeController < ApplicationController
  before_action :set_posts, only: [:index]

  def index
    @posts = @posts.latest.page(params[:page]).per(5)
  end
end