Sha256: c3a5c71fc7ff26a3da3acc81faf52ecf95b40d6b8806aac43817ba81b2fc8923

Contents?: true

Size: 239 Bytes

Versions: 14

Compression:

Stored size: 239 Bytes

Contents

class HomeController < ApplicationController
  def index
    @projects = Project.limit(5).order('created_at DESC').all
    @vacancies = Vacancy.open.limit(5).order('created_at DESC').all
    @page = Page.where(name: 'Home').first
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
voluntary-0.3.0 app/controllers/home_controller.rb
voluntary-0.2.4 app/controllers/home_controller.rb
voluntary-0.2.3 app/controllers/home_controller.rb
voluntary-0.2.2 app/controllers/home_controller.rb
voluntary-0.2.1 app/controllers/home_controller.rb
voluntary-0.2.0 app/controllers/home_controller.rb
voluntary-0.1.0 app/controllers/home_controller.rb
voluntary-0.1.0.rc4 app/controllers/home_controller.rb
voluntary-0.1.0.rc3 app/controllers/home_controller.rb
voluntary-0.1.0.rc2 app/controllers/home_controller.rb
voluntary-0.1.0.rc1 app/controllers/home_controller.rb
voluntary-0.0.3 app/controllers/home_controller.rb
voluntary-0.0.2 app/controllers/home_controller.rb
voluntary-0.0.1 app/controllers/home_controller.rb