# Load dry-rb gems with Rails 6.1.3.1

**URL:** <https://discourse.dry-rb.org/t/load-dry-rb-gems-with-rails-6-1-3-1/1229>\
**Category:** Support\
**Created:** [April 3, 2021, 1:12am UTC](https://discourse.dry-rb.org/t/load-dry-rb-gems-with-rails-6-1-3-1/1229 "2021-04-03T01:12:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxiperezunlam](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/maxiperezunlam/32/628_2.png) [@maxiperezunlam](https://discourse.dry-rb.org/u/maxiperezunlam)\
**Post date:** [April 3, 2021, 1:12am UTC](https://discourse.dry-rb.org/t/load-dry-rb-gems-with-rails-6-1-3-1/1229/1 "2021-04-03T01:12:05Z")

</div>

Hello,

I am trying to use dry-rb gems, specifically dry-monads on Ruby on Rails project (version 6.1.3.1). I add the next line in my Gemfile:

```auto
source 'https://rubygems.org'
#Another gems
gem 'dry-monads'

```

Execute bundle install command and it is successful. However when I try to include Dry::Monads[:result] and load the class, the rails console throws the next error:

NameError (uninitialized constant MyNamespace::MyClass::Dry.

I also try to include Dry::Monads::Result::Mixin instead Dry::Monads[:result] and rails console throws the same error.

If I try require explicitly the console throws LoadError (cannot load such file – dry/monads).

Do you have any idea about this problem?

Thanks in advance and regards.

---

<div class="post-metadata">

**Author:** ![flash-gordon](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/flash-gordon/32/494_2.png) [@flash-gordon](https://discourse.dry-rb.org/u/flash-gordon)\
**Post date:** [April 4, 2021, 9:46am UTC](https://discourse.dry-rb.org/t/load-dry-rb-gems-with-rails-6-1-3-1/1229/2 "2021-04-04T09:46:31Z")

</div>

Really hard to tell what’s going on there. I can only say `require 'dry/monads'` at the top of a file where you reference `Dry::Monads` should do it. I don’t think rails breaks it. If you can provide a standalone reproducible example I’ll be able to figure this out (well, I usually do!).
