Building has_one from has_many Associations Discussion
And since the enum has created scopes for `billing` and `shipping`, you can DRY those associations up a little with:
```
has_one :billing_address, -> { merge(Address.billing) }, class_name: "A...
David Aldridge
replied
8
General
Something has changed with Passenger that has left the guides unusuables
It is possible that the Passenger version you are using is not compatible with the version of Ruby you are using. Try updating both Passenger and Ruby to the latest versions and then redeploying yo...
Ashley
replied
2
General
Adding Exceptions To Recurring Events Discussion
Does anyone have a solution for editing an event and creating an exception? Like instead of just deleting an individual day I want to change the times for just that one day? I know I should just cr...
spacerobotTR
replied
5
General
Test Driven Development Basics Discussion
I found this to be very confusing. As a beginning, I'm not even sure what is going on on the screen. Where did all this code come from? What does it do?
Is there a prologe to this course? Something...
Marina Angeli
replied
5
General
How do I deploy a rails only api on render ?
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
1
Rails
Building Utilities with Ruby Scripts Discussion
Glad to hear that you enjoyed the video! Yeah, I wanted to stay more focused on the overall theme of building utilities so I didn't dive into the regex much, also because it is specific somewhat to...
cjilbert504
replied
2
General
Change password of users in Madmin rails 7 + Devise
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
1
Rails
Migrating from Rails UJS to Hotwire: Data Method, Confirm, and Disable With Discussion
I exactly followed the example, but it doesn't work for me. The form is submitted but the button is not disabled and the text is not changing. Do I miss some JS magic? Any ideas?
Robert Reiz
replied
18
General
Dependency Inversion Principle Discussion
Thanks a lot, very enlightful.
Rafael de Paula
replied
12
General
Why the automated deployment from GitHub to DigitalOcean, will change the image urls in my RubyOnRails app?
Viktor Emilov
posted
1
Rails