file include error

Hello guys,

i want to include file in another file

for ex. i have a file _search.html.erb & index.html.erb _search include
in index using <% render :partial => 'search'%> that's no problem but i
want to without underscore i mean (search.html.erb)include in index.html
how this one possible.

I think you can do it using the render command. Check out the section “render a file” from the following link:

Hope that helps,

Something like this:

render :file => "/path/to/some/template.erb"