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. -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Aug 25, 2008 at 10:29 PM, Pierre-yves Pyf <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> 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 <br />, so when you render html, you can''t see the difference. my .2 cents. -- Gabriel Laskar <bibi.skuk-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
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. -- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---