
how can i pass mailer_name into a method using noticed gem
0
Ruby
us = User.first
email = EmailDetail.find_by_name("Welcome User Email")
UserNotification.with(email_class: "UserMailer" , email: email.function_name).deliver(us)
i am trying to pass maile...
zunaira ihsan posted

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

i am a complete beginner, where do i start to learn ruby?
0
General
Hi, i am a student and landed here through github student dev pack, would like to learn ruby but have no prior coding knowledge. I would like to start with ruby rather than python or javascript. I ...
Guy 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

Trying to relearn CSS and I'm stuck
1
CSS
I'm trying to figure out how to do a simple animation. I have a box with some text content, the idea is that the box only shows an h2 element until the user mouses over it, then it reveals the para...

SQL Introduction with PostgreSQL Discussion
1
General
Nice job Collin! : )

Dynamically create sass variables in rails
6
CSS
I have a multi-tenant app where each tenant can set their primary and accent colors. Is there a way i can grab those values and insert them into a sass file on page load? I"m using rails 5 and post...
Matt Taylor replied
Solved

What is the best way to add a dynamic active class to a link with Tailwind CSS?
6
CSS
From what I understand the "active variant" is not enabled by default? Where exactly do you enable that with rails? Is there another way to add and remove parts of classes to put together an active...
Solved

How to I Architect my application?
1
General
So I have been tasked with a project where I have 3 entities, say a retail shop, wholesale shop and a manufacturer. Each have their own schemas (each shop has its own subdomain). All three entities...

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...

Handling Subdomains and Multitenancy From Scratch Discussion
55
General
This is my favorite episode thus far. The expansion on top of Rails is so intuitive, never thought how useful separating accounts from users would be.Hopefully there's a simple answer to this. When...
Robert Ault replied

Contributing to Open Source: Adding subdomains to the Addressable gem Discussion
0
General

Advanced URL Parsing in Rails with PublicSuffix & Addressable gems Discussion
0
General

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

Uploading Files to DigitalOcean Spaces Discussion
8
General
Thanks Chris. This was very timely as I was just considering options on a file upload project at the moment.
Zack replied

Domain & Subdomain Routing Constraints in Rails Discussion
9
General
@Chris !!!!
THANK YOU! I've been at this all day working with acts_as_tenant. Had some issue with some "undefined method `arity' " error when I added the acts_as_tenant(:account) to a model. Not...
bradnealy replied

Use select_tag to link to customer show page
13
Rails
I'm converting a MS access databse to Rails. The database has a customer table of over 5,000 customers. I have imprted the customer table from the Acces db into the Rails postgres db.
I can use th...
bradnealy replied