wap
August 19, 2009, 8:01am
1
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.
wap
August 19, 2009, 1:52pm
2
I think you can do it using the render command. Check out the section
“render a file” from the following link:
Hope that helps,
Jim
http://www.thepeoplesfee.com/contribute
On Wed, Aug 19, 2009 at 2:01 AM, Wap A.
<[email protected]
wap
August 19, 2009, 2:23pm
3
James E. wrote:
I think you can do it using the render command. Check out the section
“render a file” from the following link:
ActionController::Base
Hope that helps,
Jim
http://www.thepeoplesfee.com/contribute
On Wed, Aug 19, 2009 at 2:01 AM, Wap A.
<[email protected]
i can not understood as per ur link if u have any example please give.
wap
August 19, 2009, 2:28pm
4
Something like this:
render :file => “/path/to/some/template.erb”
On Wed, Aug 19, 2009 at 8:23 AM, Wap A.
<[email protected]
wap
August 19, 2009, 2:32pm
5
James E. wrote:
Something like this:
render :file => “/path/to/some/template.erb”
On Wed, Aug 19, 2009 at 8:23 AM, Wap A.
<[email protected]
thanks now it is working
thanks a lot