I have a active model named "references" and its data structure is as below: id :integer ...
I used Rails 5.2 and Carrierwave-qiniu to upload and storage files. When I download files , I can...
Hi I am trying to join three tables together and then pull out a specific table but not getting any...
I have the following method: def parent_item_id=(item_id) if new_record? ...
Does this require javascript? I notice on a lot of pages, particularly wikipedia, that if I scroll...
I'm looking to take the last two digits of the created_at year and include a number on the end to...
I'm struggling to figure out exactly how to get this to work, but essentially I have 2 models: ...
I have a url which is supposed to accept only json: put "/my_url" => "my_controller#my_actio",...
I'm creating a filtered table for my user model. I've created a few scopes to filter them. I'm...
Currently I'm trying to attach an :avatar field on a Profile. I get the following error: However,...
How to tell jQuery to fire a callback function only once ? $(document).on('ready turbolinks:load',...
I have an AJAX form that sends a POST request to the controller. The controller responds in...
When using custom exceptions_app and rescue_responses, an application has more control of uncaught...
I have Voucher model with expired date inside.. Here's the codes: rails generate model...
ok this is weird.. I have a multi tenancy app which works perfectly. The app uses ActiveStorage...
Using Rails 5.2.1, I am adding a customization possibility to my app which is basically a...
I'm currently working on creating a users profile. I installed Devise for authentication. I have a...
I have installed Rails application in Ubuntu+Nginx+Passenger server on Digital Ocean. The...
How can we configure custom smtp settings from the database values given by user?
How do i display my images in the rails admin view, edit and show actions? Here is my code...
I am attempting to set up a messaging system in my rails app that will allow the receiver to view...
I am trying to update a user through a custom controller with a nested form. I am able to create...
I have models for Users and Sites with a has_many through relaitonship between them. There is one...
I am new to Rails. I am using Rails 5.2.1. I am making a quiz app in rails. With the help of...
I'm trying to learn to use Webpacker. I'm adapting an existing Rails (5.2) application and using...
enum status: [ :in_progress, :on_hold, :cancelled, :shipped ] I need to split :shipped based on...
I'd like to set my application's root to an action of an engine's controller. I thought this in my...
Is there any logic to update ActiveRecord Query Record's field from 1 to n. @user =...
I'm trying to use the omniauth-steam gem to provide steam login functionality to a new RoR site and...
I have an html code with rails. I need to translate it into slim format, I changed the file format,...