Displaying 1 result from an estimated 1 matches for "body_top".
Did you mean:
body_ok
2006 Jun 26
0
Using a partial multiple times in a view
...cmd_df = "df -Ph"
exec_cmd(cmd_df)
cmd_sys = "uname -a"
exec_cmd(cmd_sys)
end
private
def exec_cmd(cmd)
r=IO.popen(cmd, "r")
@result = r.readlines($/)
r.close_read
return @result
end
heres the index view
<div class="body_top">
<%= render_partial ''shared/page_header_image'', ''image'' =>
''/images/system.gif'' %>
<%= render_partial ''shared/page_menu'' %>
</div> <!-- body_top -->
<div class="body_content&q...