Class: HomeController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- Voluntary::ApplicationController
- ApplicationController
- HomeController
- 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
Methods included from Voluntary::V1::BaseController
#parent, #voluntary_application_javascripts, #voluntary_application_stylesheets
Methods included from Applicat::Mvc::Controller
Instance Method Details
#index ⇒ Object
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 |