# word\_wrap & restful\_authentification

**URL:** <https://discuss.rubyonrails.org/t/word-wrap-restful-authentification/33613>\
**Category:** rubyonrails-talk\
**Created:** [August 25, 2008, 8:29pm UTC](https://discuss.rubyonrails.org/t/word-wrap-restful-authentification/33613 "2008-08-25T20:29:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [August 25, 2008, 8:29pm UTC](https://discuss.rubyonrails.org/t/word-wrap-restful-authentification/33613/1 "2008-08-25T20: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:** ![Gabriel\_Laskar](https://avatars.discourse-cdn.com/v4/letter/g/5f8ce5/32.png) [@Gabriel\_Laskar](https://discuss.rubyonrails.org/u/Gabriel_Laskar)\
**Post date:** [August 25, 2008, 9:27pm UTC](https://discuss.rubyonrails.org/t/word-wrap-restful-authentification/33613/2 "2008-08-25T21:27:24Z")

</div>

> 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 \<br /\>, so when you render html, you can't see the difference.

my .2 cents.

---

<div class="post-metadata">

**Author:** ![11175](https://avatars.discourse-cdn.com/v4/letter/1/8edcca/32.png) [@11175](https://discuss.rubyonrails.org/u/11175)\
**Post date:** [August 26, 2008, 7:18am UTC](https://discuss.rubyonrails.org/t/word-wrap-restful-authentification/33613/3 "2008-08-26T07: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.
