How can I include nested comments into an existing project?
PG::UndefinedTable: ERROR: relation "commentables" does not exist when rake db:migrate
Berkovich Pavel postedPG::UndefinedTable: ERROR: relation "commentables" does not exist when rake db:migrate
Berkovich Pavel postedI have a function in my app that emails out a PDF of any invoice as an attachment. Everything works fine if its run in production on the web worker. Of course this bogs the app down and I want to...
Criss Frost postedHey everyone, I'm using a Railsbytes script to install bootstrap 5 alpha; https://railsbytes.com/public/templates/VB0s5v. However, I can't get any of the tooltips and popovers to work. Not sure ...
Jacob Hedengren postedIs there a way to detect users leaving a page and alerting them in rails or would it be better to use jquery? Thank you!
JP postedHi Justin Two things you could look into depending on what more specific you’re looking for. If you want to get going easy and have something in your own app. I think something like Chartkick co...
Mads Obel repliedI'm wondering about the best way to approach scheduled notifications. Having users who set their timezone and pick the best time to receive a regular notification (can be daily or less often), I c...
Arnaud postedHow do i reduce video size while uploading using active storage Rails 5.2.4.3
Asher Namanya postedThanks Chris for the response. Sorry for the delay, I had pivot to another project for small feature update. I feel I'm close to solving this issue, but I'm drawing a blank on the best approach to ...
Mountaindog repliedYou can just assign it to the window variable so it's accessible anywhere I believe. ```javascript window.$ = window.jQuery = require("jquery") ```
Chris Oliver repliedTake a look at Liquid and Panoramic! Source [https://medium.com/@pratikbh06/customisable-email-templates-in-rails-made-easy-using-panoramic-and-liquid-rails-d1d71f61387d](https://medium.com/@prati...
Henk Jan repliedI am using devise gem for authenticating users. I modified it a bit to let users signup using a mobile number instead of email id. Which now works as expected. What I want to do next is inviting us...
kshitijLohbare postedLet's say I have an attribute :year_of_birth for example and another field :age (readonly), I fill in the year_of_birth. And I make a method in a model to calculate the age, how does the age get po...
Samantha O postedHi, I'm trying to create an account from a popup form. But I get the first argument in form cannot contain nil or be empty. What am I doing wrong? class AccountsController < ApplicationCon...
Samantha O postedHey there! I have been trying to solve this for 5+ hours at this point. M D - did you ever figure out a solution here?
Greg Blass repliedAwesome. You can use the RAILS_LOG_TO_STDOUT env var to have Rails not write to the normal log file. You may also need to tweak the ActiveRecord logger if you need to turn it off.
Chris Oliver replied • SolvedI work with Rails remote form. After set the session like session[:user_id] = 123, the session is still blank {}. After I refreshed page, I got the user_id value. How can I access those session wit...
Uysim postedWhat is the path for learning Ruby on Raila? Which course do I start with? Thanks in advance.
ashritharai posted