Class: HomeController

Inherits:
ApplicationController show all
Defined in:
app/controllers/home_controller.rb,
lib/generators/voluntary/product_dummy/templates/app/controllers/home_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_ability

Methods included from Voluntary::V1::BaseController

#parent, #voluntary_application_javascripts, #voluntary_application_stylesheets

Methods included from Applicat::Mvc::Controller

included

Instance Method Details

#indexObject



2
3
4
5
# File 'app/controllers/home_controller.rb', line 2

def index
  @projects = Project.limit(5).order('created_at DESC').all
  @page = Page.where(name: 'Home').first
end