0

我想覆盖一些 activeadmin 视图,我偶然发现了一些带有.arb扩展名的文件,我不知道要在其中编写什么样的代码(看起来像普通的 Ruby,但我不确定)。我怎样才能找出是什么呈现了某种扩展?

我试图搜索这个,但不幸的是我找不到任何相关的结果。

4

1 回答 1

2

文件扩展名转到嵌入在 Active Admin 中的 Arbre。唯一的文档是代码。作者已表示他打算将其变成宝石。他已经启动了一个 gem(版本 0.0.1),但那里也没有文档。

https://github.com/gregbell/active_admin/tree/master/lib/active_admin/arbre/html

http://rubydoc.info/gems/arbre/0.0.1/frames

请注意,“令牌”被定义为 AUTO_BUILD_ELEMENTS。

:a, :abbr, :address, :area, :article, :aside, :audio, :b, :base,
:bdo, :blockquote, :body, :br, :button, :canvas, :caption, :cite,
:code, :col, :colgroup, :command, :datalist, :dd, :del, :details,
:dfn, :div, :dl, :dt, :em, :embed, :fieldset, :figcaption, :figure,
:footer, :form, :h1, :h2, :h3, :h4, :h5, :h6, :head, :header, :hgroup, 
:hr, :html, :i, :iframe, :img, :input, :ins, :keygen, :kbd, :label, 
:legend, :li, :link, :map, :mark, :menu, :meta, :meter, :nav, :noscript, 
:object, :ol, :optgroup, :option, :output, :pre, :progress, :q,
:s, :samp, :script, :section, :select, :small, :source, :span,
:strong, :style, :sub, :summary, :sup, :table, :tbody, :td,
:textarea, :tfoot, :th, :thead, :time, :title, :tr, :ul, :var, :video
于 2012-05-03T02:09:52.723 回答