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/
On 04/02/2009, at 3:06 PM, msk
<khanshakeeb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> 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 :)
>
> >
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---