<file_sep>module HomeHelper
  def tel_to(phone_number:, country_code:)
    phone_number = number_to_phone phone_number, country_code: country_code
    link_to phone_number, "tel:#{phone_number}"
  end
end
<file_sep>require("@rails/ujs").start()
// require("turbolinks").start()
require("@rails/activestorage").start()
require("channels")

var jQuery = require("jquery");

global.$ = global.jQuery = jQuery;
window.$ = window.jQuery = jQuery;

import 'bootstrap'
import './jquery.easing.min'
import Splide from "@splidejs/splide";

$(document).ready(function () {
    $('[data-toggle="tooltip"]').tooltip()
    import('./scripts')
    new Splide('#image-slider', {
        type: 'loop',
        pagination: false,
        classes: {
            arrow: 'splide__arrow splide__custom_array_color'
        }
    }).mount();

    $('li.dropdown a.dropdown-item').click(function () {
        $(this).parent().dropdown('hide')
    })
})


// document.addEventListener("turbolinks:load", () => {
//     $('[data-toggle="tooltip"]').tooltip()
//     import('./scripts')
// });

import "@fortawesome/fontawesome-free/js/all";


<file_sep>Rails.application.routes.draw do
  root to: 'home#index'

  scope '(:locale)', locale: /en|ru/ do
    get '/', to: 'home#index', as: 'root_localized'
  end
end
