Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

File uploading with ActiveStorage in Rails 5.2 Discussion

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

Displaying User presence when tracking online Users with ActionCable

2
Rails
Hi, I'm wondering on my current implementation for tracking and displaying user online presence. I followed "Realtime Online User Tracking with ActionCable" for the most part and rig...
Chris Oliver replied
Solved

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

jquery_ujs and rails-ujs problem ajax page

1
Rails
hello everyone. i am new in rails and ruby , i just started like 1 week ago . i trying to do a chat between 2 people on rails, with jquery for the ajax part. everything work, but i got this err...
pikooli replied
Solved

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...
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&#...
Chris Oliver replied

Flash alert/notification messages not displaying for the 'Log In' and 'Log Out' views

1
Rails
The flash alert/notification for the 'Log In' and 'Log Out' views are not displayed on the screen when a user logs in or out of the Rails application. I am not getting any errrors...
Alfred Montalvo Jr replied
Solved

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 selec...
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...
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 pla...
punkt1 posted

Protecting from XSS with Sanitize Discussion

7
General
Thanks Chris! I'm building an app and just realized I'm not sanitizing user generated urls. Thanks for the helpful tips.
octanepower replied

Rails for Mac OS Catalina

2
General
Hello, Super excited to be part of this group as I am in need of help. I have an existing Rails project that I cannot run anymore. I followed the steps here (https://gorails.com/setup/osx/10.15-ca...
Marc Guerrero replied

Building a product in under 10 minutes with Jumpstart Pro Discussion

16
General
**Congrats on the 300th episode! šŸŽ‰** Jumpstart Pro looks great!
Vitaly Kozadayev replied

Learning Ruby on Rails? Join our newsletter.

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