From: jackster the jackle Date: 2007-12-14T09:52:56+09:00 Subject: Re: Showing Running Processes in variable Thanks for all the help everyone. Someone from the rails forum gave me what seems like the simplest solution...here's what he wrote: The problem you have is an HTML one, not a ruby one. Basically, HTML ignores a \n unless it is inside a
 
tag. So, you can do this instead:
<%= processes %>
And it should work fine. Also your Ruby code can be just: def processes `ps -el` end To get the same result. You don't need all that splitting or assignments or even return command. ---------------- thanks again for all the good ideas. jackster -- Posted via http://www.ruby-forum.com/.