ual_app/app/controllers/public/home_controller.rb
2014-08-24 00:18:02 +02:00

17 lines
243 B
Ruby

class Public::HomeController < ApplicationController
layout "public"
def home
@articles = Article.before(Date.today).recents
@articles = @articles.page(params[:page]).per(4)
@title = "Formation EFT"
end
end