Save 36% for Black Friday! Learn more

Ruby on Rails Community Forum

Chris, would you build Simple_Discussion differently today using Rails 7 and Hotwire?

2
General
I'm curious to hear how Chris would approach building simple_discussion if he had to start from scratch using Ruby 3.2, Rails 7 and Hotwire. Cheers! -Dan H
DanInBC replied
Solved

Where do I put a custom validator for a model?

4
Databases
I'm confused about where to put code for a custom validator I wrote, should I create a nested class inside the model file? or create a new file in models/concerns? I have the code but don't know wh...
Stéphane Paquet replied
Solved

Multi Tenant based database can connect into another database like multi-db connection?

0
Databases
I've been working on one project that has already implemented a multi-tenant database setup using the apartment gem. and now I need to connect this multi-tenant database to my other project. I've c...
vinay sharma posted

Facing a problem in setting up the web server in Rails.

1
Rails
I am doing an advanced Ruby on Rails Course and even I have completed many lessons in it. Now I am creating my first web application but facing a problem in setting up the web server. This is t...
Priya Sharma replied

Solving FizzBuzz in Ruby Discussion

16
General
Love this episode Chris.Would love to see more.
Dylan replied

Testing File Uploads in Rails with Shrine Discussion

2
General
This is great! Can we add system tests too? How can we write a system test to create photo and update photos?
Charalampos Aristomenopoulos replied

How to write Controller & Integration Tests in Rails Discussion

8
General
Hi Chris great job! What is the difference of the integration test with the controller test

Why is sidekiq not working properly in development?

3
Rails
I have some sidekiq workers and they work great in production but in development I'm getting errors like NameError: uninitialized constant TicketAssignedWorker.. sidekiq.yml --- :concurrency: 6 :...

How do I sync ActiveStorage files between development (local) and production (Amazon S3)?

0
Rails
I have a Rails 6 app on Heroku with a Postgresql database and ActiveStorage on Amazon S3. Sometimes I need to sync my local db with production data to make debug easier. And it works great. I want...

Handling multiple Account types

4
Rails
Hello Guys, I'm doing some research on how to handle multiple account types. In our app, we will have two types of accounts. **Parents** and **Schools**. These accounts will never change types, fo...

Building has_one from has_many Associations Discussion

7
General
Great tip! I use something similar for designating the thumbnail-image of a gallery of images. Something along these lines: ```ruby class Gallery has_many :images has_one :thumbnail, -> { w...
David Aldridge replied

Something has changed with Passenger that has left the guides unusuables

1
General
It is the fifth time I try from scratch the deployment and have had deployed previously without any major problem. Think is, I don't know if it because now default repositories submit passenger 6, ...
Ashley replied

Adding Exceptions To Recurring Events Discussion

4
General
thank you Chris!
spacerobotTR replied

How do I search Action Text with Ransack?

9
Rails
I have set up a basic search using Ransack but I don't understand how to get it to search Action Text. This is how it is implimented in the search_form_for: f.search_field :title_or_rcontent_or_c...
Jay Killeen replied
Solved

Rails view_components

16
Rails
Are there any plans on covering view_components? It would be great to see a few episodes on using view_components + tailwind / bootstrap + stimulus & stimulus reflex. Maybe the twitter example...
William Cunningham replied

Test Driven Development Basics Discussion

4
General
I really like that you come at it fairly 'bare bones'... as in, no Rspec / FactoryBot / Fixtures / Cucumber / Faker / shoulda-matchers /guard etc etc. I recall when learning for the first time, i...
Marina Angeli replied

How do I deploy a rails only api on render ?

0
Rails
I was trying to deploy my rails only application on render but still getting error : couldn't find expected key "-", in my render.yaml file. Please anyone for help ? Here is my render.yaml file d...
Yannick posted

Cloud9 Rails Console display makes it unusable

2
General
Hello, I am using Cloud9 for a Rails project and everything works fine except the Rails Console. The display get messed up because of the autocomplete popup moves the active line around the scree...
chuckblake replied

Suggestion for Topic/Lesson: Rebuild Recurring Select with hotwire

0
Site Feedback
Since the recurring select gem is not really actively maintained it would be great to see a hotwire version of what this gem offers. Maybe not every recurrence option it offers but a few of the sta...
spacerobotTR posted

Bundler default gem dependency error Discussion

0
General

Learning Ruby on Rails? Join our newsletter.

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