Sha256: 0807513529d8d5e230713674cac1d8c69e7840629a85164f99a60d7bad01c4fb

Contents?: true

Size: 240 Bytes

Versions: 2

Compression:

Stored size: 240 Bytes

Contents

module Theblog
  class HomeController < Theblog::ApplicationController
    skip_before_action :authenticate_user!

    def index
      @node = Page.find_by(slug: 'home')
      @node ||= Page.first

      @posts = Post.all
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
theblog-0.0.1.1 app/controllers/theblog/home_controller.rb
theblog-0.0.1 app/controllers/theblog/home_controller.rb