From c0a3378d2587c9fda27e97645799dd7a008819a1 Mon Sep 17 00:00:00 2001 From: hellekin Date: Thu, 8 Oct 2020 17:38:04 +0200 Subject: Make map more beautiful This commit introduces a few things: 1. New `content_for` hooks for :debug, :head, and :body_end so that views code remains consistent and clean 2. Fullscreen map! 3. Welcome#index view, the Rails way It also moves controller-related code to the controller, Enjoy! --- app/controllers/welcome_controller.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/controllers') diff --git a/app/controllers/welcome_controller.rb b/app/controllers/welcome_controller.rb index 5e80d26..48167b2 100644 --- a/app/controllers/welcome_controller.rb +++ b/app/controllers/welcome_controller.rb @@ -1,6 +1,8 @@ class WelcomeController < ApplicationController # GET / def index + @resources = Resource.order(:uuid).page params[:page] + Rails.logger.info "WECLOME ///// #{@resources&.count || 0}" end # GET /authenticate(/:token) -- cgit v1.2.3