# Word\_wrap & restful\_authentification

**URL:** <https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824>\
**Category:** Rails\
**Created:** [August 25, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824 "2008-08-25T22:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f14d63/32.png) [@pyf](https://www.ruby-forum.com/u/pyf)\
**Post date:** [August 25, 2008, 10:29pm UTC](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824/1 "2008-08-25T22:29:52Z")

</div>

Hi,

I have two problems:

1- I use rails 2.1, I would like use word\_wrap my text. But the method  
has no effects. However the method truncat goes on the same text. In  
MySQL this is a text type. Have you an idea?

2- When I open an authentification page in firefox my login-password are  
accepted in a web formulary.  
In Internet explorer I have a window (authentification popup of windows)  
to fill. The same login-password don’t pass. (OS : Vista).

Thanks.

---

<div class="post-metadata">

**Author:** ![pyf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f14d63/32.png) [@pyf](https://www.ruby-forum.com/u/pyf)\
**Post date:** [August 25, 2008, 11:28pm UTC](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824/2 "2008-08-25T23:28:06Z")

</div>

On Mon, Aug 25, 2008 at 10:29 PM, Pierre-yves Pyf  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi,  
> Hi

> I have two problems:  
> First. two problems, two discussions, but no problem.

> 1- I use rails 2.1, I would like use word\_wrap my text. But the method  
> has no effects. However the method truncat goes on the same text. In  
> MySQL this is a text type. Have you an idea?  
> Are the “\n” correctly placed in your text ? try to use simple\_format  
> for example.  
> word\_wrap add “\n”, but no   
> , so when you render html, you can’t  
> see the difference.

my .2 cents.

–  
Gabriel L. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![pyf](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/f14d63/32.png) [@pyf](https://www.ruby-forum.com/u/pyf)\
**Post date:** [August 26, 2008, 9:18am UTC](https://www.ruby-forum.com/t/word-wrap-restful-authentification/146824/3 "2008-08-26T09:18:29Z")

</div>

Gabriel,

Sorry for two questions in the same post.  
You are right, word\_wrap return the correct text. But my text had not  
any “\n”.

Thank you.
