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
Any help is highly appreciated..
render
accepts a path relative to the app/views
folder. Your view should be located at app/views/admin/csv/upload_csv.html.haml
to be rendered as written.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.