I'm using Rails 5.1 and the current version of MySQL. I have two methods in my...
EDIT: I was able to fix the below by adding the line host: 127.0.0.1 to my database.yml for the...
How can I create an ultimatum in Rails? I want to create an ultimatum, and at the end of it,...
I'm getting this error in the console, something like the page code: ERROR Error: Uncaught (in...
In my rails application the following relationships exist: user belongs_to :team , element...
I have a problem with validation, i dont know how to validate it right in collection with .join(',...
I am using carrierwave with Rails 5. In my extension white list allowed types are jpg, jpeg and...
I'm creating a "without refresh page comment" using Jquery and Ajax. Inside...
I have added audit rails gem in my project and its working fine with the development rails. I had...
I recently installed and set-up rails on an Ubuntu bash running on Windows as a Linux subsystem. I...
After clicking on the "Save" button of the account form, the page is rendered to the edit account...
Screenshot of Error Message If I do not add any image in product then it is working fine with...
I have a simple model : class Property < ApplicationRecord belongs_to :user has_many...
I currently need to pass some methods as parameters in order to render json properly: render...
In my javascript console it works when I do this$('.collapse').collapse();, but it does not work...
I know there are multiple gems available in Ruby that can do it, but I can't add those gems to my...
I have a single page that is React and the rest of the website is (currently) Rails. The React...
I'm using rails API as the backend and react for the frontend. I want to update a user's record...
I have a file like this: app/controllers/application_controller.rb class ApplicationController...
I currently have the following model association: Trip has_many :items Item belongs_to...
I'm doing an online word learning project and i want to making a search feature where you can...
In my Rails app I have a users_controller with an action that displays a users profile, but I would...
Jquery is not defined in rails and I can not seem to find the problem. It works when im writing...
9 hours ago

Refactor case clause

I need to refactor the following rails function, Rubocop doesn't like too much complexity, I'm...
I have model with an attribute (period_starting_at) of TIME datatype, running on Rails 5 with...
I'm working a Rails application ran into some problems with a 502 error when I tried to go to our...
I added two attributes to my model: #group.rb class Spree::Group < ActiveRecord::Base ...
I'm trying to be able to reset a password the default devise passwords controller #create method...
I'm setting up a background task with sidekiq and redis. Have it working completely fine in...
I am using the 0.10 branch of AMS with a Rails 5.2 app and trying to bring up a first serializer....