informativo basico
This commit is contained in:
11
app/controllers/page_controller.rb
Normal file
11
app/controllers/page_controller.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class PageController < ApplicationController
|
||||
|
||||
def home
|
||||
@informativos = Informativo.order("data_inc desc").page(params[:page] || 1)
|
||||
end
|
||||
|
||||
def informativo
|
||||
@informativo = Informativo.find(params[:id])
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user