2 sites... 1 DB?
I don't see where there's any issue other than activestorage I have two sites running from the same database but I can't figure out how to display images
Fugee Ohu
replied
9
Rails
Strict Loading with ActiveRecord Discussion
Nice to be able to remove dependencies like the Bullet gem and do this all in Rails!
Chris Oliver
posted
1
General
Interface Segregation Principle Discussion
What an episode!
That was one of the best explanations of ISP that I've seen.
The ruby specific examples were Gold
Arthur Ariza
replied
2
General
Refactoring CSV Uploads with ActiveModel::Model Discussion
What is the best approach to deal with csv headers that don't match 1:1 to the model's columns?
I used Structs to build a hash, but I'm thinking on refactoring to ActiveModel::Model.
Any suggesti...
Arthur Ariza
replied
21
General
Restrict devise routes
Hi,
How can I restrict access to the devise sign_up route to logged in users only?
Controller:
```ruby
# frozen_string_literal: true
class Users::RegistrationsController < Devise::Registrati...
Christian Herber Santos
posted
1
General
Form with references field
Hello,
Yes, I checked the database and saw that my error was when I generated the model, putting the city_id:references field instead of just city:references.
Thanks
Christian Herber Santos
replied
3
Rails
The Behaviors Of Super Discussion
Way to help us supercharge our troubleshooting skills. :D Great episode!
Ann Cascarano
replied
2
General
ActiveJob Perform All Later Discussion
This is handy especially for things like notifications where you need to queue up many separate jobs at once.
Chris Oliver
posted
1
General
Rails upgrade companies
Difficult choice indeed. Ready to discuss this in public? What parts do you consider in the decision?
robert
replied
2
Rails
Outbound Email with Headers: In-Reply-To, References and more Discussion
Thank you Chris for the great series! I am running into a error though on this tutorial when trying to create a post and have it show on the conversations page. ActionController::UnknownFormat (Act...
Damon Clark
posted
1
General
The MVC Pattern Explained Discussion
Awesome Chris! Great breakdown of the MVC pattern! : )
Eric Halverson
replied
5
General
Transitioning from JAVA to Ruby On Rails. How do I go about it
Shiva Sharan Viralam Sreedar
replied
3
General
[delegated_type] How to query a collection of entries including the (entryable) sub-entries.
I need to query a collection of entries based on a range of dates and then sum an attribute of the sub-entry using the delegated_type method. Something like this:
```
Entry.where(performed_at: Da...
William Cunningham
posted
1
Rails