Seems surprising to me as well. Thanks, Abhinav -- अभिनव http://twitter.com/abhinav
On Tue, Sep 8, 2009 at 7:00 PM, Dudebot <[email protected]> wrote: > > Thanks-- > > <%= render :partial => 'layouts/navbar_tabs' %> > > works. Seems kind of ugly, though--even in layouts, shouldn't a form > look in its own directory for a partial? > > Anyway, thanks! > > On Sep 8, 7:23 am, Abhinav Saxena <[email protected]> wrote: > > Try giving the whole path in render like this: > > > > <%= render :partial => '/messages/navbar_tabs' %> # if your partial is in > > messages directory. > > > > Let us know if this does not work. > > > > Thanks, > > Abhinav > > > > -- > > अभिनवhttp://twitter.com/abhinav > > > > On Tue, Sep 8, 2009 at 4:54 PM, Dudebot <[email protected]> wrote: > > > > > Hi Gurus, how do I include a partial in my main layout? > > > > > In views/layouts/application.html.erb I have > > > > > <code> > > > ... > > > <%= render :partial => 'navbar_tabs' %> > > > ... > > > </code> > > > No matter where I put _navbar_tabs.html.erb (or renamed it to > > > _navbar_tabs.erb in desperation) I get the error > > > > > Showing app/views/layouts/application.html.erb where line #20 raised: > > > > > Missing template messages/_navbar_tabs.erb in view path app/views > > > > > Can you help? > > > > > TIA, > > > Craig > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

