You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a products class and using attachinary/cloudinary for images. Decided to try out the administrate gem and this is what I am getting: _uninitialized constant Attachinary::FileDashboard Extracted source (around line #263): constant.const_get(name) else candidate = constant.const_get(name) next candidate if constant.const_defined?(name, false) next candidate unless Object.const_defined?(name)
Any idea on how to solve this? Thank you
The text was updated successfully, but these errors were encountered:
I am unaware of where you are getting this error, however I have successfully used attachinary with administrate. You have to do something link this.
rails generate administrate:field attachinary
# app/fields/attachinary_field.rb
require "administrate/field/base"
class AttachinaryField < Administrate::Field::Base
def path_for_image
data.path
end
def to_s
data
end
end
I have a products class and using attachinary/cloudinary for images. Decided to try out the administrate gem and this is what I am getting: _uninitialized constant Attachinary::FileDashboard
Extracted source (around line #263): constant.const_get(name) else candidate = constant.const_get(name) next candidate if constant.const_defined?(name, false) next candidate unless Object.const_defined?(name)
Any idea on how to solve this? Thank you
The text was updated successfully, but these errors were encountered: