Reputation: 188
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
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