Fahad Idrees
Fahad Idrees

Reputation: 188

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

Any help is highly appreciated..

Upvotes: 1

Views: 843

Answers (1)

ahmacleod
ahmacleod

Reputation: 4310

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.

Upvotes: 2

Related Questions