wblog/app/controllers/archives_controller.rb

10 lines
146 B
Ruby

class ArchivesController < ApplicationController
def index
@posts = Post.all
end
def archive_params
params.permit(:type)
end
end