Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

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

I want to click on dynamically created HTML elements in stimulus js.

1
Javascript
for example in jquery we do this => So instead of... $(".myclass").click( function() { // do something }); We do this.... $('body').on('click', 'a.myclass', function() { // do somethi...
Abdul Basit Khan replied
Solved

Would you like to use Rails to improve someone's mental health?

3
General
Hey all, I’m a product owner for a mental health NPO, HeartSupport. I have a team of 3 volunteer RoR devs that have built an MVP for a product that will scale mental health support across the inte...
Solved

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

Form not displaying errors

1
Rails
Here is my user.rb file class User < ApplicationRecord has_secure_password validates :email, presence: true, format: { with: /\A[\w.+-]+@\w+\.\w+\z/, message: "must be a valid email add...
Ordin replied

Metaprogramming Virtual Attributes Discussion

3
General
Nice intro into metaprogramming and how concerns can be used.I'm one of the fresh subscribers and have noticed one thing: no need to quit rails console to clear the console output. To save couple o...
Leon Entrup replied

Intersection Observer API to refactor Infinite scroll Discussion

2
General
Hi, Chris! Recently found gem from basecamp “geared_pagination”. Can you make a suggestion how to integrate it instead of pagy?
lsantobuono replied

GitHub Actions with Ruby on Rails: Setting up Continuous Integration Discussion

19
General
Congratulations on the video was very good, I will try today
Ignacio Alonso replied

User Avatars with ActiveStorage Discussion

13
General
Hi Chris, great episode. I posted a question about ActiveStorage but I have not received any response yet. Basically what i want to do is upload images for a has_many_attached directly from a contr...
TilakP3811 replied

Liskov Substitution Principle Discussion

8
General
Awesome.Keep up the SOLID principles work.
Mateusz Bialowas replied

Rendering simple_calendar content using Turbo Frames

2
Rails
Hi there, It's a great pleasure to use this gem which is really handy ! I started using Turbo recently on my application and still had troubles wrapping my head around... Idea here is not only to ...
spacerobotTR replied

Learning Ruby on Rails? Join our newsletter.

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