Ruby on Rails Community Forum
Docker rails assets:precompile
2
Rails
Hello I'm learning docker and faced this error while testing it locally
```
banstein@DESKTOP-I54N512:~/Projects/icb$ docker-compose build
[+] Building 4.2s (12/12) FINISHED ...
Islam Bahnas replied
Serializing Attributes with Custom Coders Discussion
0
General
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
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
Change password of users in Madmin rails 7 + Devise
0
Rails
Hi!
I need to create users, and change password of users in madmin. But if I change the password I got this error
raise Errors::InvalidHash.new("invalid hash")
I understand the problem is the passw...
Jose Ignacio Jerez posted