1

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..

1
  • 2
    What error do you get? Commented Sep 11, 2015 at 10:39

1 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.