Rails 4: Paperclip and rails_admin "undefined method `attachment_definitions' error"

paperclip, rails-admin, ruby-on-rails

Solution

I am on rails 3 still but ran into the same issue. I am fairly certain its an issue with the latest paperclip and rails_admin. I backed paperclip down to paperclip (3.4.2) and everything works.

Another thing of note I am using ruby 1.9.3

So for the newer rails guys/galls

In your gem file

gem "paperclip", "3.4.2"

then `bundle update`

not sure if other versions will work but I know that one does

Problem

I am using rails_admin and paperclip but installing rails_admin with a model having paperclip attributes `has_attached_file` throws an error ``` undefined method `attachment_definitions' ``` I am using Rails 4 and rails_admin at master git branch and protected attributes gem.

Original source