Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling inline_edit on a has_many association #1911

Closed
benshimmin opened this issue Feb 11, 2014 · 2 comments
Closed

Disabling inline_edit on a has_many association #1911

benshimmin opened this issue Feb 11, 2014 · 2 comments
Milestone

Comments

@benshimmin
Copy link

How does one do this?

Setting inline_edit false in the relevant field block throws an error; looking at the source, it seems like that instance option isn't registered in HasManyAssociation (but it is in HasOneAssociation, for instance).

@benshimmin
Copy link
Author

Actually, looking at it more carefully, inline_edit controls the button that displays alongside a has_one association, but what I want to do is stop the ability to double-click on an item in the multi-selectable list (?) on a has_many association. I'm sure I'm able to use JavaScript to do this, but it seems like a kludge.

(Background: we have a predefined set of tags which belong to an article. We want our users to be able to choose the tags, but not be able to edit the tags themselves!)

@amalagaura
Copy link

Kudos on this great project.

I am having this same issue. I don't understand why the inline_edit and inline_add are not configurable on has_many's. I actually have it on a through and they throw exceptions and I cannot disable them. I will see if I can understand it further.

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

No branches or pull requests

3 participants