Ruby on Rails Community Forum

on click

0
Javascript
Can anybody help me on disabling a icon on clicking a checkbox??
Neena-Relyon posted

How can I display production s3 images in staging?

1
General
I have one s3 bucket for production and one for staging. What I want to be able to do is display production images when on staging (or development), but if I update an image while on staging/develo...
Peter vande Put replied

How do I subscribe action cable receiver to a new stream without resetting the entire channel subscription?

1
General
I have an inbuilt chat service on my application. A signed in user will select another user to start a conversation with them. How can I send stream for this new conversation to the 2 users without...
Nathan Chalot replied

CORS hatchbox.io

0
Rails
I deployed my app with hatchbox.io but cannt update the image and got the error as below: Access to XMLHttpRequest at 'https://wellicanbucket.s3.ap-southeast-2.amazonaws.com/wacxzy7llqdcamldoaiuei...
THANH .V TRAN posted

How do I properly use the delegate method?

3
Rails
I'm curious how this can be correctly applied to a booking application. If you have a `Reservation` and `Customer` model, does it make sense to store information such as the first name, last name, ...
Chris Oliver replied

How do I do this???

0
Tips
Hi, I have a App "myApp" and contains users. than there is an external App "ExtApp". myApp & ExtApp have a partnership. So when one user of myApp want to join ExtApp the user should automati...
MrGrashopper posted

File uploading with ActiveStorage in Rails 5.2 Discussion

30
General
Do previewers for Word Files and Excel 
Michael Prince replied

How ActionCable Uses Redis Discussion

4
General
Nice! I d like to see an episode on ActionCable & Redis tuning and optimisation to allow massive number of subscribers (100+) with frequent updates. Im currently pushing matrix with data of siz...
Yi Mei Wang replied

getting KeyError: key not found: :keychain when running cap staging deploy

0
Rails
success Saved lockfile. 01 01 01 Done in 10.26s. ✔ 01 ubuntu@13.229.169.23 10.938s ** Execute deploy:assets:precompile 01:06 deploy:assets:precompile 01 ~/.rvm/bin/r...
Rahul Coder posted

Is anyone using digital ocean kubernetes clusters. I’d like to know more

0
General
is anyone using kubernetes clusters? i currently have a dev test prod paradigm with load balanced servers. looking to leverage kubernetes clusters but not familiar how to leverage in digital oce...
Keith Gapol posted

How do I build conditional form fields?

4
General
I'm trying to build a form which contains categories and subcategories. The desired effect is to display the subcategories field or the relevant subcategories depending on the category that has bee...
Charles Fonlupt replied

Delete images from Digital Ocean Spaces uploaded with ActiveStorage

0
Gems / Libraries
Hey guys! Using: Rails 6.0.2.1 Ruby: 2.7.0p0 Digital OceanSpaces Active Storage gem aws-sdk-s3 I can upload image but when I click to delete image I get this: ``` :S3::Errors::NoSuchKey: ap...
Jorge Dominguez posted

Facing Authentication error

1
Rails
Hi , I am facing the unauthorised error in rails even after i am using the correct username and password database i used is postgres and devise is used for the authentication mechanism.
varun chawla replied

A video about ActiveRecord Association is missing

1
Site Feedback
Hi firstable i want to thank you about this rich content website , you push me to the more advanced rails dev I have suggestion why not doing a video explain the ActiveRecord Association and it's...
Chris Oliver replied

Active Admin Authorization by CanCan gem when User and ActiveAdmin have same model

0
Rails
I already had a User model with different roles handled by cancan gem. Now i have implemented active admin gem in the same User model with another role. Now i could not figure out how to restrict a...
Shaheryar Imtiaz posted

Cross-origin Resource Sharing (CORS) with Rails Discussion

1
General
What would be the `script src` if you are adding the embedded script to another website?
Thato replied

Rails has_one, belongs_to, join_table and nested form

0
Rails
I'm creating a User, Role and UserRole. A user can create a list of roles, and from the new user form, there is a nested form which populate a list of roles created, then the user able to select a ...
Lee Terng Gio posted

best gem for Grid & Filter?

0
Gems / Libraries
What's best used for displaying a DataGrid and a Form with Filter Fields/Dropdowns etc. ? Best Regards - stay healthy! Andreas
Andreas Ulrich posted

simple_calendar gem AJAX Drop-down list for Month/Years

2
General
Greetings Chris, I've been using simple_calendar gem for a while -- its a wonderful solution. I was wondering...Can you implement a dropdown list for the months/years for the calendar itself. I thi...
Darion Wood replied

Ruby combinations with ruleset ?

0
Ruby
Hey iam trying to figure out how i could limit my combinations of objects. **My problem:** I want to generate x teams with the most "point" outcome of 432 players, max team size is 7 players. Each...
punkt1 posted

Learning Ruby on Rails? Join our newsletter.

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