Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

render partial in views root failing to find template

#282

Hi, I upgraded to edge rails (svn revision 9250) and found this problem. I had "menu" partial, stored inside /app/views/_menu.html.erb. I call it from another template, using this code:

<%= render :partial => "/menu" %>

It worked ok in 2.0.2, but when running it on edge rails, it fails with this message: "Couldn't find template file for _menu in ["...../app/views"]"

I found a workaround. I moved the partial template to views subfolder /app/views/newsubfolder/_menu.html.erb and call it using

<%= render :partial => "/newsubfolder/menu" %>

and then it works. But don't want it to be in subfolder.

Reported by Petr Sodomka · May 30th, 2008 @ 12:11 PM

State: invalid
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jacek Becela
    Jacek Becela

    Isn't Rails svn deprecated and not in sync with git repo?

    May 31st, 2008 @ 02:10 AM

  2. Pratik
    Pratik
    • State changed from new to invalid

    Can you try on latest edge please ? Get it from git://github.com/rails/rails.git

    May 31st, 2008 @ 10:03 AM