Re: [Rails-core] has many :through using defined scopes from the :through association instead of dupping

2015-10-16 Thread Matt Jones
On Thu, Oct 15, 2015 at 9:17 PM, Will Spurgin wrote: > Hey all, > > I've been doing a *bunch* of researching on this topic, and I wanted to > get feedback from the community on this potential feature (or if I'm just > completely missing that it's already a feature, your gentle correction). > > Re

[Rails-core] PublicExceptions middleware in development env

2015-10-16 Thread Kir Shatrov
Imagine a case: you want to render Not found page somewhere from the controller. You could raise `ActiveRecord::NotFoundError` or `ActionController::RoutingError`, but none of them are related to your error case: it's neither ActiveRecord nor Routing error. We usually use `head :not_found` in su

[Rails-core] has many :through using defined scopes from the :through association instead of dupping

2015-10-16 Thread Will Spurgin
Hey all, I've been doing a *bunch* of researching on this topic, and I wanted to get feedback from the community on this potential feature (or if I'm just completely missing that it's already a feature, your gentle correction). Recently, I've started a project, and I ran across a scenario where