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
When I did the configurations above, all other fields disappear in rails_admin, no matter I create new user or edit an existing user
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