How do I drag and drop an image file?

3
Rails
I have a rails application that can upload an image using CarrierWave and MiniMagick and a file_field. This seems to be the usual way to do things and works well. I have a user that wants to open...
William Jones replied
Solved

Sidekiq + Action Mailer

2
Rails
I study Ruby on Rails and I have a one-page simple application that will send emails to people. In the form on the page, a person enters the time and date when he wants to send an email. deliver_n...
Michael Kogan replied

How can I create a user specfic page?

1
Rails
So I'm kind of struggling with understanding how a system like this could work. What I need to know is how can i create one page and multiple devise gem users, then have this page draw individual i...
Chris Oliver replied

Push changes to Node packages to Heroku

1
Rails
Okay, full disclosure, I upgraded to Rails 6 without fully understanding the consequences of using Actiontext and Webpacker. It's all new to me. So in my folly, I changed some of the Trix css direc...
Dan Donche replied

How to get ngrok working with webpack-dev-server

2
Rails
I run my local dev site on ngrok and the webpack-dev-server spits out errors to the console on a regular basis: `GET https://localhost:3035/sockjs-node/info?t=1566173800826 net::ERR_CERT_AUTHORITY...
Ghar replied

How to model these relations in Rails

6
Rails
For a couple of days now i am going back and forth how to models this. I currently have the following model structure and relations (simplified) ``` class Fleet < ApplicationRecord # proper...
Drazen replied
Solved

How to attach a remote S3 file to an outgoing email? [SOLVED]

3
Rails
I'm using a regular mailer to send text emails and now I want to attach a file stored on S3 to the email. I have the URL of the file and was naively hoping something like this would work: ``` def ...
Daniel Weaver replied
Solved

How to protect API againest malicious attack?

5
Rails
Hello 👋 I'm working on an API that is reciving requests from websites (Shopify stores), the request looks like: ``` shopCentralAPI.apiToken = "123" shopCentralAPI.metafieldCreateUpdate(shopCentral...
Karim Tarek replied

Bundler And PG Error On Deployment

10
Rails
Hi, I followed every step of the deployment but when I get to 'cap production deploy', some errors appear : ``` 01 /home/deploy/.rbenv/versions/2.6.1/lib/ruby/gems/2.6.0/gems/bundler-1.17.3/lib/bu...
Damian Nelwep replied

How do I temporarily redirect stderr in Ruby on Rails?

2
Rails
Hi, gays. I would like to ask for advice. I asked this question on [StackOverflow](https://stackoverflow.com/questions/56828359/how-do-i-temporarily-redirect-stderr-in-ruby-on-rails) , but I did no...
Alexey replied

Unable to create the Rails app in WSL

1
Rails
Hey, I am getting these errors while creating the app in WSL. Please help to fix it. Would be very much appreciated. **Error Images** https://uploads.disquscdn.com/images/b39eba240df8adcde8fc0b3ae...
Chris Oliver replied

Namespace rails belongs_to

1
Rails
I have the following configuration module Account class Permission
Lidia Wisniewska replied

How to test attachments in ActionMailbox?

4
Rails
I'm trying to test attachments using receive_inbound_email_from_mail, but when inspecting mail.attachments I get an empty array. Is there another way around this? receive_inbound_email_from_mail( ...
Taha Husain replied
Solved

How to build something like a Youtube advertisement system

2
Rails
Hi Chris, I am pretty sure they have a complex system implmented but at the basics of it, how could you go about implementing an autoplay advertise video before the actual video itself starts to p...
Darren Booker replied

Need a hand with associations

6
Rails
I have a users model, and an accounts model. Basically I would like to have... - An account has one owner - An account can have many users - Users can only be a member of one account. Does the fol...
Ivan Raszl replied

How do i create and custom module with view

1
Rails
Planning to create a generic module for filters in my app. Is there a help where i can see how to create the modules and how the file structure would be for that?
Ivan Raszl replied

Video idea: Google insights

0
Rails
Hi Chris, Would be nice to see a video about optimizations for rails for better score in google's page speed test. https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fgorail...
Pedro Carmona posted

How to mark a post as read, so that it won't show up again for a user?

6
Rails
I was looking at the unread gem but it seems a bit complicated and many seem to run into difficulty with it. Instead, I was thinking of adding an 'already_read' column (boolean) to the post mode...
Monroe Mann replied

Jumpstart Template

1
Rails
I followed this tutorial (https://github.com/excide3/jumpstart), when I go into powershell and enter EDITOR=subl rails credentials:edit it comes up as a empty file. If I try and migrate the Databas...
Tom Marler replied

Ruby on Rails: gem devise session logged in

1
Rails
I have two tables, company and employee, so I would like when I register an employee, his registration was also for the company that was already logged, that is, without having to have to choose wh...
Ivan Raszl replied

Want to stay up-to-date with Ruby on Rails?

Join 92,051+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.