Display a string properly in View

Valentino Lun
Thu, 18 Jun 2009 09:12:29 -0000

Dear all

I have problem in print the string in View.

@event = Event.first

puts @event.event_detail
dreq_reqno   dreq_status  dreq_create_time
09P0917228   0            18 Jun 2009 16:32
09P5075748   0            18 Jun 2009 16:32
09P5075755   0            18 Jun 2009 16:33
The format is pretty good using puts

But when I print this in View, the format disorder (Some spaces are
trimmed.)..
<%= @event.event_detail.event_detail.gsub("\n",
" ") %>
dreq_reqno dreq_status dreq_create_time
09P0917228 0 18 Jun 2009 16:32
09P5075748 0 18 Jun 2009 16:32
09P5075755 0 18 Jun 2009 16:33

How can I have the "puts @event.event_detail" in View?? I tried this,
but not work.
<%= puts @event.event_detail %>