Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在评估rails_admin但在使用祖先gem 时遇到了问题。在管理上下文中,默认的 rails_admin 只是将祖先键显示为文本值(这不是那么有用)。
更好的是能够在显示视图中查看给定类别的祖先(上下),并能够在编辑视图中选择新的父级(我已经设法创建下拉列表,但是如果有一个,则不是预选择当前父级的控件)。
你有没有遇到过这个问题,你有什么想法来解决它吗?
谢谢!
我使用 jquery nestable 编写了这个插件:https ://github.com/dalpo/rails_admin_nestable
有关更多详细信息,请参阅 github自述文件。
我使用https://github.com/mceachen/closure_tree正确呈现了层次结构。虽然没有尝试过血统。
试一试,让我们知道