Ruby on Rails Community Forum

Guidance how to structure models for site credits / user balances

2
Rails
Dear GoRails-Community,Super happy to finally have joined! Thanks Chris for building the site and community. Really love that it allows to discuss approaches which always gets downvoted on SO :)I'm...
Dolf replied

How does one handle multiple Sidekiq queues on hatchbox.io deployment?

1
Servers
In reference to the ActionMailer documentation stating Sidekiq should be started to listen on the mailer queue, how does one ensure the hatchbox deployment handles this?In the documentation it stat...
Chris Oliver replied

Whats the best way to handle subscriptions with a forum?

1
Rails
I'm building a forum and was wondering what's the best way to handle subscriptions? 
Chris Oliver replied
Solved

i18n + Minitest

1
Testing
I have a complete rails application with Tests (Minitest 100% coverage)I'm trying to use i18n in this app, as told  in http://guides.rubyonrails.org/i18n.html , taking the locale from the url ...
Lluis Toyos replied

What is the correct way to convert virtual attribute to real one

0
Rails
First of all the logic of my app. The user could have several profiles situationally, such as blogger, advertiser or manager and act with different profile different role. But during public registr...
Yurii Cherniavskyi posted

SSL issue with nginx

0
Rails
Hi everyone, i have followed this tutorial and got stuck https://gorails.com/guides/free-ssl-with-rails-and-nginx-using-let-s-encrypti enabled the option to redirect on https. and now when i'm...
Muneeb Ahmad Farooqi posted

Caching Active Storage in the Browser

1
Rails
I am been using Carrier wave to up load images. I upload them then have the ability to create.a cropped version which I show on my web site.The cache nicely on the web pages so they don't need re d...
Drew Bragg replied

How to use rails and sortable connected lists

2
Rails
Hello!I'm trying to create sortable connected lists with a single modal. Two lists that I want to move items between and then display. I've successfully followed the video on sortable with a single...
Graeme Ellis replied
Solved

A newbie to Ruby

1
Ruby
I am a new to Ruby, so which episode should I watch first.
Chris Oliver replied

Vue + Webpacker: app works in development but doesn't mount template in production - blank screen with no errors in console!

1
Javascript
I'm using Rails 5.2.0 and Webpacker gem to deploy a Vue application.The show.html.erb file is very simple:<div data-behavior="vue-app"><MyComponent></MyComponent></div>And t...
John Meehan replied

How to Compile Dynamic NGINX Modules Discussion

0
General
Hi, Thanks a ton for this blog. This is what I have been looking for. I got stuck one place. I am navice so the question. I have centos to install nginx and add another module and offcourse getti...
Eddy Jose posted

How to paginate stateful tabs with Pagy

0
Rails
Pagy is the new kid on the block when it comes to pagination in Ruby on Rails. Here you'll find how easy it is to paginate stateful tabs with it: https://www.imaginarycloud.com/blog/how-to-paginate...
Sandro Cantante posted

dropzonejs plus simple_form

0
Rails
how to upload multiple files with the gem dropzonejs-rails with a form using gem simple_form
django posted

Need some help with an Active Record Query

6
Rails
HiI have these tables:Users which has many:Farms which has many:StoresI want to return stores that belong to a specific user_id.Got this far but Rails is giving me an error.Thanks in advance for an...
Simon P replied
Solved

s3 images not showing up in gmail?

2
Rails
So I'm sending an email using actionmailer which has an image-tag for an image that is stored out in S3.  For some reason gmail doesn't display the image.  it displays images that are com...
Jason Ormes replied
Solved

I have an error of the following form and I am unable to point out the error.

3
Testing
 Unable to autoload constant CONSTANT_NAME, expected TESTING_FILE_PATH to define it
John Meehan replied

How do we request a new video?

1
Rails
I there a place to vote on ideas, etc?
Chris Oliver replied

ActionCable streaming from a strange channel name

1
Rails
Hello!I'm following your course "Group Chat with ActionCable" and everything works fine, except one thing: When I broadcast to ActionCable.server.broadcast "rooms:#{message.room.id}", it ...
ValentinKLN replied
Solved

Form item disappearing when failing nested validations

4
Rails
I have a Rails 5 app, and I'm having a problem with validations using the Cocoon gem with nested, dynamic forms. When a validation on my Book model fails, and my create action renders :new, th...
Nino Rosella replied
Solved

Set up S3 or DO Spaces for storage, and serve stored images through Cloudfront or other CDN

0
Rails
Hi all, I'm trying to set up a Rails 5.2 app to directly upload images to Digital Ocean Spaces, and to then serve those images using Cloudfront. I'm able to do direct uploads to Spaces using Active...
Ken posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.