Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Field dispear #18

Open
rankai opened this issue Mar 12, 2014 · 1 comment
Open

Field dispear #18

rankai opened this issue Mar 12, 2014 · 1 comment

Comments

@rankai
Copy link

rankai commented Mar 12, 2014

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

@walidvb
Copy link

walidvb commented Feb 28, 2015

@KevinRan When you use

edit do 
    field :photo
end

you need to explicitly list all the attributes what you want to see.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants