I'm using ruby27 in GAE Standard for Ruby. It currently resolves to 2.7.7. Previously, under 2.7.6, the GAE builder successfully precompiled assets. N ...
I'm using ruby27 in GAE Standard for Ruby. It currently resolves to 2.7.7. Previously, under 2.7.6, the GAE builder successfully precompiled assets. N ...
For context, I have a controller method called delete_cars. Inside of the method, I call destroy_all on an ActiveRecord::Collection of Cars. Below the ...
I currently used turbo-frame in a project which was using turbo-links, after I found that all the pages are disrupted by turbo-frames, such as the dro ...
I`m trying to create a new Rails app, using Ruby v 3.2.0 and Rails 6.0.2, but I get following error. Anyone know how to solve this problem? Error ima ...
I'm new to Ruby and Rails, so please forgive me if this is a n00b question. I'm trying to upgrade a very old app (using Ruby 2.3.4 and Rails 5.0.6) to ...
While upgrading from Ruby 2.6.6 to Ruby 3.1.3 and from Rails 5.2.6 to Rails 6.0.6, I made sure that I followed and incorporated all the changes betwee ...
I need to run a rake task to migrate data in my model class Translation < ApplicationRecord store :body, accessors: [:object_body], coder: YAML ...
So I'm trying to create scope for User model. It goes like this: I want to select all users in given age_range, but it gives me an error: ERROR: m ...
I have a Rails 6 app. The Hat model is in a has_one polymorphic relationship with the Person model. (I know this seems backwards. I'm not the author o ...
How can I load a file like? if I'm using Shakapacker? (new webpacker) ...
We have a rails 5.2.8.1 app and a trying to upgrade to rails 6.1. We have managed to make the application run locally with only minor problems. Howev ...
I'm trying to use create_or_find_by which is like find_or_create_by except it tries the create first, and resorts to find if there was a uniqueness va ...
I need to show notice/pop ups upon hitting of a button. Similar approaches are working in other views and controllers of the app but here on this Impo ...
I'm running into a strange issue with my Rails 6 app. I'm using devise for two different models and have each scoped appropriately (I believe). I have ...
Upon hitting a dropdown link of edit, the error is The URL which is getting requested on clicking edit button is http://localhost:3000/admin/tenant ...
I am trying to add a post action button to upload a CSV to get data from CSV into postGreSQL database. But getting the following error(copied the erro ...
I'm fairly sure there's a straightforward strategy for this, but I can't find an example of how it's been implemented so I wanted to post something to ...
Controller Code # frozen_string_literal: true module Api module V1 class MarketplacesController < ApplicationController before_action ...
So I wanted tu customize Trix editor. For now I Have H2, H3 button (suprisingly they works) and "RED" button (change text color to red). In Trix edito ...
consider this code: So: I want to change that for compatibility with Rails 7 so I wrote this: Did I do a right thing? because .preload(resource, ...