NoMethodError: undefined method `mount_uploader'

762 views
Skip to first unread message

Rick

unread,
Jan 30, 2010, 8:58:09 PM1/30/10
to carrierwave
There may be a simple solution for this, but I can't seem to get my
app going with carrierwave. I'm running on Rails 2.3.5, latest
carrierwave and using Mongoid for my ORM. I'm just using the console
to create a new object with Photo.new when the following is thrown:

NoMethodError: undefined method `mount_uploader' for Photo:Class

Here is a gist of my model and uploader: http://gist.github.com/290836.
Any help is appreciated. Thanks!

Durran Jordan

unread,
Jan 31, 2010, 2:11:26 PM1/31/10
to carri...@googlegroups.com
Which version of carrierwave and which version of Mongoid?

Rick Salsa

unread,
Jan 31, 2010, 2:54:24 PM1/31/10
to carri...@googlegroups.com
The latest gems of both. Thanks!

Rick Salsa

unread,
Jan 31, 2010, 6:28:16 PM1/31/10
to carri...@googlegroups.com
So it seems I was running carrierwave 0.4.3 which was the problem. I'm running 0.4.4 now and all is working thus far. 
Reply all
Reply to author
Forward
0 new messages