Forum: Ruby on Rails having prob in partial render

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
52aef235303ba4a768d288159228f36a?d=identicon&s=25 msk (Guest)
on 2009-02-04 10: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" %>
</div>

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


tree structure lok like this:


view/
      shared/_sidebar.html.erb
      layout/home.html.erb

can any one help out where i am wrong
thanks to all in advance :)
3131fcea0a711e5ad89c8d49cc9253b4?d=identicon&s=25 Julian Leviston (Guest)
on 2009-02-04 10:48
(Received via mailing list)
Take out the initial underscore from the render call. It assumes an
underscored filename

Blog: http://random8.zenunit.com/
Learn rails: http://sensei.zenunit.com/
This topic is locked and can not be replied to.