Search code examples
ruby-on-railsmissing-template

Missing template after copying rails project


I copyed/pasted my rails project from work computer to personal computer on an Ubuntu Virtual Box, and I have an error while I try to access a page : "Missing Template".

Does anyone have an idea ?

(Sorry for my bad english)


Solution

  • In views folder, rails can't find index.html.erb file in /products folder. Make sure you have index file there. If it is not so paste your directory structure here

    It should be here

    /home/benjamin/workspace/Projet_ERP_Rails/app/views/products/index.html.erb
    

    If it is not there, then create one.