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
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
After I modified the rails_admin.rb file to enable jcrop:
config.model User do
configure :photo, :jcrop
Below is optional
edit do
field :photo do
jcrop_options aspectRatio: 500.0/320.0
end
end
end
It has following issues:
1.It only works if the user has a photo and I click the photo in the edit page. If I change another image, I have to go back to the index, and edit again to use jcrop
2. When I did the configurations above, all other fields disappear in rails_admin, no matter I create new user or edit an existing user
The text was updated successfully, but these errors were encountered:
After I modified the rails_admin.rb file to enable jcrop:
config.model User do
configure :photo, :jcrop
Below is optional
edit do
field :photo do
jcrop_options aspectRatio: 500.0/320.0
end
end
end
It has following issues:
1.It only works if the user has a photo and I click the photo in the edit page. If I change another image, I have to go back to the index, and edit again to use jcrop
2. When I did the configurations above, all other fields disappear in rails_admin, no matter I create new user or edit an existing user
The text was updated successfully, but these errors were encountered: