search for: cmd_sys

Displaying 1 result from an estimated 1 matches for "cmd_sys".

Did you mean: cmd_sync
2006 Jun 26
0
Using a partial multiple times in a view
...rying to execute multiple cmds in a method that use the same view which has multiple calls to the same partial inside it. However i cant get it to work correctly, so any help here would be appreciated heres the controller code def index 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/p...