2012-04-20 2 views
0

일부 activeadmin 뷰를 덮어 쓰고 싶습니다. .arb 확장자가있는 일부 파일을 우연히 발견하고 (일반 Ruby처럼 보이지만 확실하지 않습니다.) 어떤 종류의 코드를 작성해야할지 모르겠습니다. 특정 종류의 확장을 렌더링하는 것이 무엇인지 어떻게 알 수 있습니까?레일즈에서 누가 특정 파일 확장자를 렌더링하는지 어떻게 알 수 있습니까?

이 문제를 찾으려고했지만 불행히도 관련 결과를 찾을 수 없습니다.

답변

2

파일 확장자는 Active Admin에 내장 된 Arbre로 이동합니다. 유일한 문서는 코드입니다. 저자는 그가 그것을 보석으로 만들려고한다고 말했다. 그는 보석 (버전 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 
관련 문제