Ruby on Rails Community Forum

Testing Times & Dates with Rails Discussion

0
General

Rails with Stimulus Reflex and AnyCable too slow

0
Rails
Hi, I am using stimulus reflexes with AnyCable but in production, the site becomes really slow after spending 10-15 minutes on the same page doing multiple operations. But after refresh it works fi...
ahmadkamrans posted

How to quiet Delayed Job logs in development?

1
Rails
Rails 3.2.14 / Ruby 2.0.0 / Delayed Job 4.1.4 / Foreman I'm running a worker with Delayed Job, starting the process with Foreman. It all works fine but my dev logs are full of Delayed Job SQL sta...

How do I remove associated records?

1
Rails
I have these associations. Course has_many :assignments, class_name: 'CourseManagement::Assignment' has_many :students, through: :assignments, source: :student Assignment: belongs_to :course, cl...

Setup Ubuntu 22.04 Jammy Jellyfish Discussion

0
General

How do I assign multiple user_id's to one work order record

0
Rails
i got a question ive been scratching my head for a few days on a solution to a problem. I currently have work order that we assign a single user to and im trying to figure out the best way to assig...
Austin Klenk posted

Devise Masquerade as another User Discussion

24
General
Great video, can you explain more about the page.resources? where that is coming from and how it contains the user info for that method. Thanks
Someone replied

Stimulus JS controller not working

1
Javascript
I've taken a clone of one of the projects and I'm following the general setup commands. When I'm trying to create a new js controller(stimulus js) or defining any new method in the existing js cont...
Muhammad Taha replied

Debugging: How to Interpret a Stacktrace Discussion

10
General
Thanks, Chris. You consistently put out amazing content that I don't see anyone else doing. I appreciate the quality of your lessons. Keep up the awesomeness!
Brandon Elfring replied

Powershell Script Works Correctly in Alteryx Designer but not on Alteryx Gallery

0
General
I asked this over on the Alteryx forums and unfortunately didn't get any answer. Hopefully someone here with Alteryx/PS experience will know the issue. I have a workflow that runs a batch file with...
pavanznmd posted

How can I fix this in my ruby on rails, I installed all the requirements in the the ROR?

0
Gems / Libraries
C:/Ruby31-x64/lib/ruby/gems/3.1.0/gems/tzinfo-2.0.5/lib/tzinfo/data_source.rb:159:in `rescue in create_default_data_source': tzinfo-data is not present. Please add gem 'tzinfo-data' to your Gemfile...

Transforming JSON responses to Ruby objects with OpenStruct Discussion

3
General
This is great to see but I'd prefer to put the "key" as an attribute on the class itself. Maybe Vultr::Plan::KEY or a class attribute. That way we merely pass in the "type" and the Collection can e...
Jens Dahl Møllerhøj replied

Override CSS in Gem with CSS from app

0
Rails
Hi, I'm working on a Rails Gem. The gem provides one view and a basic stylesheet for it. When installed in an app, i'd like to be able to override the basic styles with other styles in the app it...
Neil Tonge posted

How To Update ActionText Attachments Discussion

2
General
Maybe would be even more generic with `GlobalID::Locator.locate_signed(node.attributes['sgid'].value)` https://github.com/rails/globalid#signed-global-ids
Adam Stockland replied

How do I add a second bundle when using ESBuild and dart-sass? (one for admin, anothre for public-facing layouts)

1
Javascript
I need two separate bundles - one for the Admin section and one for the Public part of the application. How can I add a second bundle to an ESBuild configuration? The two should have separate list...
Chris Oliver replied

How do I include FontAwesome Pro in a Rails 7 project?

2
Rails
I own a license to FA Pro, and I want to use it in a new Rails 7 project. It doesn't look like I can do an importmap include of the pro font awesome, or if so, I'm doing it wrong. So I downloaded ...
ramzieus replied

Accessing The Rails test.key on GitHub Actions

0
Testing
I have credential files and keys for production, development, and test. Meaning I have no master.key file. How do I then access my test.key using GitHub actions? Using these approaches does not w...
Brian Gilbank posted

Rails for Beginners Part 10: Setting up a Git repository and Flash messages Discussion

4
General
It would be cool if you stop interrupting the other person when he is trying to speak
Filipe Carneiro replied

How do I pass local variables to iteration in turbo_stream?

0
Ruby
In my app I have projects which have many tasks. The tasks are iterated through on the projects show page: ``` ### Project#show <% @tasks.each do |task| %> <%= f...
Gabriel posted

How do i receive chunked files in API's

0
Tips
Hi i am building rails api based application. I need to receive bigger files in chunk api, and final one more api. Any idea or existing solution i can get or refer.
Dilip posted

Learning Ruby on Rails? Join our newsletter.

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