Skip to content


Subversion checkout URL

You can clone with
Download ZIP


NoMethodError: undefined method `grid_fs_connection' for CarrierWave::Uploader::Base:Class #77

stevenkolstad opened this Issue · 1 comment

2 participants


Environment: Ruby 1.9.3-p327, Rails 3.2.9, Mongoid 3.0.9, Carrierwave-Mongoid 0.3.0

What is the correct way to configure a connection to a mongo database outside the scope of my Rails application? I have tried this in my config block:

config.grid_fs_connection[ "" ]).use "thumbs_grid"

This results in an error. I thought maybe this was the new method to establish a connection. I was used to using the config.grid_fs_database, etc. methods for connections.



@agentrock It is no longer necessary to set the grid_fs_connection config setting with the carrierwave-mongoid 0.3.0. It now depends on mongoid-grid_fs, which automatically uses the Mongoid connection.

This was unclear in the README, because the README still referenced the old config mechanism. Sorry about that, but I just remedied that.

If this doesn't address your issue, feel free to reopen this issue.

@rmm5t rmm5t closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.