word_wrap & restful_authentification

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.

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.

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.