简体   繁体   English

如何使用活动管理员呈现自定义HTML表单

[英]How to render custom html form using active admin

I have following code to render custom form but it failed to load, any thing wrong i'm doing ? 我有以下代码来呈现自定义表单,但无法加载,我在做错什么吗?

collection_action :upload_csv do
    render "admin/csv/upload_csv"
end

my view is located at admin/csv/upload_csv.html.haml 我的视图位于admin / csv / upload_csv.html.haml

Any help is highly appreciated.. 任何帮助都将受到高度赞赏。

render accepts a path relative to the app/views folder. render接受相对于app/views文件夹的路径。 Your view should be located at app/views/admin/csv/upload_csv.html.haml to be rendered as written. 您的视图应位于app/views/admin/csv/upload_csv.html.haml ,以书面形式呈现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM