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

Enabling password authentication for new ec2 box | ssh, ssh config, EC2 setup, new user in EC2, PasswordAuthentication

What's the difference between "include" and "require" in Ruby?