Anton
Anton
Working example: ```ruby class Blog < ApplicationRecord include PgSearch::Model pg_search_scope :search_comments_by_query, associated_against: { posts: %i[content] } ``` And this code doesn't work: ```ruby class Blog < ApplicationRecord include PgSearch::Model pg_search_scope...
I have the titles and descriptions that are implemented through the STI: ```ruby class Content < ApplicationRecord # ... ``` ```ruby class Title < Content #... ``` ```ruby class Description...
Rails 5.1.3 **Gemfile:** `gem 'jquery-rails'` Without `turbolinks` **application.coffee:** ```coffee #= require rails-ujs #= require jquery3 #= require popper #= require bootstrap ``` AJAX does not work. If I replace with...
I have a search in the navigation. This search is available on any page. How do I redirect to the right section when searching? Now if I do a search,...
I have a content zone and a sidebar zone. I need to implement automatic scrolling to the desired item in the menu in the sidebar, as well as to the...
I tried to cache the title: ```ruby class Types::TagType < Types::BaseObject field :id, ID, null: false field :title, String, null: false, cache: true end ``` But in the console I...
I need to add csrf-token. How to do it?
This PR adds support for custom classes for use in `raise`. This is necessary, for example, when you want to use the Actor gem to implement services, forms, or something...
How to implement this? - 4 columns for 3 or more items - 2 columns for 2 items - 1 column for 1 item That is, if I add or...