Forum: Ruby on Rails having prob in partial render

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
msk (Guest)
on 2009-02-04 11:27
(Received via mailing list)
hi, i am actually new to ruby rails so i am trying to add
_sidebar.html.erb into my home.html.erb
by using the following code directly into the home.html.erb e.g

<div id="sidebar">
<% render :partial => "/shared/_side_bar" %>

but now it gives me an error
Missing template /shared/__side_bar.erb in view path E:/ruby/rubydev/

tree structure lok like this:


can any one help out where i am wrong
thanks to all in advance :)
Julian L. (Guest)
on 2009-02-04 11:48
(Received via mailing list)
Take out the initial underscore from the render call. It assumes an
underscored filename

Learn rails:
This topic is locked and can not be replied to.