On Mar 2, 1:33 pm, Diego Bernardes <li...@ruby-forum.com> wrote:
> Hello!
>
> I developed a management application for some internal applications the
> company i work.
> Mostly applications accept a file with some params and then export the
> result to a file, so the rails app generate the file input, execute, get
> the answer from the result file and show on screen.
>
> But in the result file, everything is formated, but when i show on
> screen, i get everything in the sameline =/
>
> Anyone know any way to workarount this!?
> In the rails action im using File.open().read to get the content from
> file.
>
Are you just outputting the files contents in the middle of an html
file? If so html ignores line returns, tabs so on.
You might want to either wrap the relevant content in <pre> tags or
look at the simple_format helper (which turns line returns into
markup)
Fred
> Thanks.
>
> --
> Posted viahttp://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No comments:
Post a Comment