
Seeking Guidance on Managing Nested Attributes in Rails with accepts_nested_attributes_for
0
Rails
Hi GoRails Community,
I'm working on a Rails project that involves complex nested attributes, and I've hit a roadblock. I want to efficiently manage parent-child relationships within my models, bu...
Emma Wilson posted

How do I deploy a Rails API server to an Ubuntu 20.04 server using to nginx
1
Rails
I have an Ionic Angular App which makes requests to a Rails Api server.
On my local development machine everything works fine. The Rails Api server is accessible via localhost:3000/api which the a...
feng zhengyi replied

installation of rails in ubuntu 18.04 at windows 11
3
Rails
$ asdf install ruby 3.0.0
To follow progress, use 'tail -f /tmp/ruby-build.20230709161531.2745.log' or pass --verbose
Downloading ruby-3.0.0.tar.gz...
Installing ruby-3.0.0...
BUILD FAILED (Ubuntu ...
teroco replied

How can I get correct path of image (Production env) in Controller js (StimulusJs file) of Rails 7 app?
1
Rails
I am using `event.target.innerHTML = ` to add element when a action is triggered. It works well in development but when I deploy it in Production, it's failed to load the image's path because the c...
Robert Ault replied

ActsAsTenant demo app
1
Rails
I want to follow up on this post because I'm really interested in developing an application like Shopify that could be able to manage tenants pointing their own domains (not subdomains) to its acco...
Robert Ault replied

I am wondering if there is a way to access the current_tenant ID within a sidekiq job?
1
Rails
I can see that everything is scoped to the tenant via `ActsAsTenant.with_tenant`
https://github.com/ErwinM/acts_as_tenant/blob/master/lib/acts_as_tenant/sidekiq.rb
but wondering if I wanted to acc...
Michael Smith replied

Writing an ActiveRecord adapter
0
Rails
Since none currently exists, I'd like to write my own ActiveRecord adapter for the Immudb database. However, I've been searching for a while online and can't find any good resources on how to write...
DEEPAK KUMAR posted

Automated way to do multilingual in existing rails application
0
Rails
I have existing rails application . Currently no language support and now need to do language support . Is there any tools , gem etc which will help me to find static word from erb/helper/model etc...
Mitesh Kumar posted

SQLite3::SQLException: no such column:
1
Rails
I'm trying to make a blogging app with rails and I'm currently trying to add a comment section. When I tried looking on one of my blogs it gave me this error.
ActiveRecord::StatementInvalid in Pos...

routing errors when i try to submit a comment to a post
0
Rails
Hi Thank you, i followed this tutorial however i am getting
Routing Error when i click submit for the comment...
```
uninitialized constant Squeals
```
Rails.root: /home/ubuntu/workspace
Applic...
khemlall mangal posted

How do I nest two resources that are both polymorphic associations?
0
Rails
In my app, I have several models for various product types, as each product has different attribute types and I wanted to avoid using STI. However, I am using the same Review and Comment system for...

How do i deploy rails 7 app on digital ocean with password
1
Rails
Hello my question is how can i deploy rails 7 app(api only) on digital ocean i have password not ssh key and my operating system is windows

What should I be using to connect react to rails backend?
1
Rails
Hello all, apologies if this has been asked before. I currently work with react and node/express for the backend, but have been playing around with rails on the side and have been really enjoying i...

Best way to handle accessing resource view in modal and non modal
0
Rails
Hey there,
I'd like to get some advice on how to handle rendering similar content like a show/edit for resource in modal or in full page render. Does it make sense to have multiple routes for thes...
Edwin Mak posted

Looking for some good instructions for clean Rails install on Cloud9 with Bootstrap
0
Rails
Hey there,
I am starting a new project and I want to get it off to a clean start with Rails 7 and Bootstrap 5 on Cloud9.
After viewing some videos and going through the process a few times, it se...
chuckblake posted

Custom Image Analyzer
2
Rails
I have a custom ActiveStorage analyzer that (will) exact a bit more metadata out of an image and save it in ActiveStorage (i.e.: camera, shutter, etc...) For simplicity sake, the metadata method h...

How do I keep old files uploaded with active storage?
0
Rails
I'm using active storage with active_storage_db gem to keep files in Postgres instead of storing them in the cloud.
I have a document which I upload - has_one_attached (i don't need to upload mult...
hcosteira posted