Does the fact that Rails have an MVC approach mean that is has dependency injection?
Or is there a reason that we don't talk about dependency injection in Rails?
If Rails does have dependency injection, what does it consist of?
Does the fact that Rails have an MVC approach mean that is has dependency injection?
Or is there a reason that we don't talk about dependency injection in Rails?
If Rails does have dependency injection, what does it consist of?
Dependency injection is usually unnecessary with Ruby. Jamis Buck blogged extensively about the reasons why. Well worth a read.
Dependency Injection is a paradigm, so it exists in every object-oriented language.
Whether there are DI frameworks for Ruby - check this question
I'd say that you don't need such a thing with ruby... but if you really want to, some people have workarounds.