Ruby on Rails Community Forum
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
Decorators with the Draper Gem Discussion
3
General
How do you handle something where you're using a foreign key, for example a Commentable concern. Comment has a user as commenter. The User class method works fine, but is there a catch all way to a...
HOW DO I SHOW avatar as a thumbnail or image in rails_admin panel.
2
Rails
Hi guys, I have rails model User which has_one_attached :avatar
In rails admin, I can create a new user and upload user image avatar, but the image shows up as a broken image.
How can I let it disp...
RobbieColtrane replied
Decorators From Scratch Discussion
17
General
Nailed it. Thanks again Chris - could never find a good explanation on Decorators, hence I never used them, will be sure to use them now!
Daniel Jackson replied
Modular Code Organization Discussion
5
General
Awesome class!!!!!
katyswift468 replied
Setup Ubuntu 16.10 Yakkety Yak Discussion
0
General
Will_paginate problems
1
Rails
Hi ive been building a new web app based on michael hartl tutorial but im having problems with the will_paginate tests. When i load all my users it will display every one of them so of course ...
Activeadmin with actiontext in Rails 7
0
Rails
How i can use activeadmin with actiontext in rails 7
Muhammad Bilal posted
Setup Ubuntu 23.10 Mantic Minotaur Discussion
0
General
Testing API Integrations with WebMock Discussion
3
General
This might help someone watch the video. The website provided (https://jsonip.org/) didn't work for me. The following error occurred:
----
SocketError: Failed to open TCP connection to jsonip.org:...
Chris Oliver replied
Are there more than 2 levels on "Path" section?
1
General
Are there more than 2 levels on "Path" section, which I don't see because I am not Pro member, or there are only 2 available at the moment?
cjilbert504 replied
How do I do the following in a better way?
3
Tips
How can I write the following code in better way
```
if author.present?
Article.where(category: params[:category], author_id: author.id)
else
Article.where(category: params[:category])
end
```
milaradionova replied
Need help on Webpacker issue with Rails 6
0
Rails
I am using Rails 6, Ruby 2.7, and Webpacker 4. X
I am getting below error
ActionView::Template::Error (Webpacker can't find application.js in /Users/developer/Documents/Projects/knowhub/public/pack...
swathi arisankula posted
File to import not found or unreadable: bootstrap-sprockets on rails 5.2.0
4
Gems / Libraries
I have following problem. "File to import not found or unreadable: bootstrap-sprockets."
Following gems I have installed
gem 'bootstrap' gem 'bootstrap-sass', '~> 3.3.7'
gem 'sass-rails', '&g...
How would you approach adding students to classes?
4
Rails
I have `SchoolClass` and `Student` resources. Students belong to classes through `ClassMemberships`. So far students have been added to classes using a grid of class checkboxes on the Edit Student ...