jeudi 13 août 2015

Rails not rendering view in custom page

I am trying to render contents of user_details\index.html.erb in my custom page home.html

here is my directory structure

apps
|
views
├───co_owners
├───layouts
├───pages
├───shared
└───user_details

the home.html.erb page is pages directory... and index.html.erb pages is in user_details directory

i am using <%= render :partial => 'user_details' %> to render it on my home page... but i am getting error ActionView::MissingTemplate in Pages#home

how can i do this?

Aucun commentaire:

Enregistrer un commentaire