Skip to main content
Why is viewer_id 0 on every video?
Rails • Asked by Zanger02
The viewer_id always returns 0 after creating a video. A mentor creates a video with a user via hangouts. Mentor then creates the video on our website. Only the mentor and viewer should see the vi...

Allow with my ISP router
General Solved • Asked by Francisco Quinones
Hi, so I got a new ISP and when I try to use the I get’s server DNS address could not be found. I have no Idea what to setup in the ISP router to let the use the correct IP 127...

How do I get all projects when the end date is exactly a weekly basis?
Rails • Asked by Stephen Sizer
I have a project model with a start and end date. I want to bring back all pojects that are exactly a week old, 2 weeks, 3 weeks etc Is there a way to do this using a scope? Thanks in advance

Anyone with experience using Quilljs?
Javascript Solved • Asked by Stéphane Paquet
Hi, I'm lloking forward using in a project and wonder if anyone can share his/her experience with such text editor. Related gems are looking pretty outdated (I'm using Rail...

update a model attribute with ujs
Javascript • Asked by Joel
i have a page that displays games(model) with a select box for the game result outcome. Game model `has_one :result, autosave: true` and I have a unique id for each row in the table based on the ...

How do I rename a field on a model without running migrations or altering the database?
Rails Solved • Asked by Jay Killeen
Hi I have a rails app that sits over an existing SQL Server database that I have no control over. Purely read only access to. I have a model like Customer with fields like CustomerCode, Custo...

How to make online product designer in ruby on rail
General • Asked by Asad
Hello i want to build this type of online product designer in ruby on rails. [Online Product Designer]( Anyone know about any gem that provides this type of functi...

Knock error response in login
Gems / Libraries • Asked by Oscar Miguel Amezcua Estrella
Hiyas i want to response if user dont send `auth[email]` or `auth[password]` give the status 400 and return some json give that fields are required or the feedback the user or password is bad i fol...

Bootstrap Modal with Date Picker, what am I doing wrong?
Javascript Solved • Asked by jaems
I have a Rails 5.1 app with bootstrap 4. I have bootstrap-datepicker throughout my application and it works perfectly or at least as expected. However whenever I try to use it within a modal it w...

Is it good practice to use array/jsonb column for a non searchable, single row table?
Rails • Asked by Luca Rossi
Hi guys wanted to get some feedback on the way I have been using In my first app I am using both array (text) and jsonb columns. I am using these instead of additional DB tables since the structure...

How can one setup a service booking app with time limitations?
Rails • Asked by Drilon Buzuku
Hey guys, how can one setup a service booking system where the customer can book services between 9am and 4pm on every monday and friday? Would you use the ice_cube gem to create timeslots and t...

Best way to create a report/spam button?
Rails Solved • Asked by Ryan Carter
Just looking for ideas on the best way to create a report or spam button/link on posts and comments. And do you typically have that notification sent to an in program inbox to an admin email, etc....

Bundle Install Doesn't Work
Rails • Asked by Steve
Hi guys, I seem to be getting an error message when I run bundle install. I'm curious if any of you have had this issue before as well? I tried uninstalling bundler and reinstalling it. I tried ...

Rails How to create multiple step with list survey questionnaires
Rails • Asked by Pranay Singh
I want to create a questionnaire page like this link When user clicks Next, the page reload with new questions.If user presses Back, the page reload with questions that answered by this user. Ho...

Best way to use common code for multiple applications ?
Rails • Asked by Pardha
Hi all, I would like to know the best way to use common code for multiple applications ? Basically I am working on two applications those two are build on top of third party APIs . I wa...

Are there any episodes or series on CMS related gems ?
General • Asked by Pardha
Hi, I have to build CMS for one of my clients. I would like to know your suggestions also please let me know if we have any related videos here. Thanks, Pardha

Eager Loading on Rails 5.1
Rails • Asked by Pardha
Hi all, Seems that the eager loding doen't work in my application. Please let me know whether I need to enable or configure anything. Here is th code for association mappings. ```...

Shrine uploading image to google drive
Rails • Asked by Misel Ademi
Hi, I am trying to upload images to google drive using Shrine. I followed instructions from this gem I added this gems to my project ...

Rails routes.rb (routing with :as or :path)
Rails • Asked by Hugo A. Gallotto
Hi. I'm using Rails 2.3.16 and Ruby 1.8.7 I have the next routing: > map.namespace :controller1 do |c1| > c1.resources :controller2, :member => { :action1 => :get, :action...