issue while installing rails_admin gem in ruby on rails

if we get the error while installing rails_admin for the error
lib/rails_admin/config/fields/types.rb:11:in `load': Unsupported field datatype: binary (RuntimeError)
we have to follow below code in config/initializers/rails_admin.rb

since I don't display the binary field I put this monkey patch in my initializer:

module RailsAdmin   module Config     module Fields       module Types         def self.load(type)           return @@registry[:text] if (type.to_sym == :binary)           @@registry[type.to_sym] or raise "Unsupported field datatype: #{type}"         end       end     end   end end

Comments

Popular posts from this blog

Rails Memcache issues

scp command usage guide

ROR HEROKU Working with file storage like paperclip in heroku for free of cost ( paperclip and dropbox) paperclip-dropbox config | ROR, HEROKU, file storage, paperclip, in heroku, free of cost, paperclip, dropbox, paperclip-dropbox config