[Rails] Re: Hi, how can I split line length in Rails?

2010-06-10 Thread Ainar Abramovich
However thank you all, I found solution, I write few lines in posts helper and everything works fine module PostsHelper def wrap(content) content.split.map{ |s| wrap_long_string(s) }.join(' ') end private def wrap_long_string(text, max_width = 30) zero_width_space = "​"

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread Marnen Laibow-Koser
axelsef wrote: > use text_area > for example > <%= > text_area(:product,:description ,:size=>"100x10",:disabled=>"disabled") > %> > > I hope that will help. > > On May 24, 3:13�pm, Ainar Abramovich That's a really bad solution. Disabled objects are usually a sign that you're doing something

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread axelsef
use text_area for example <%= text_area(:product,:description ,:size=>"100x10",:disabled=>"disabled") %> I hope that will help. On May 24, 3:13 pm, Ainar Abramovich wrote: > Hi to everyone! I need to split one long line in two or multiple > lines.. how can I do that? I have a form where you can

[Rails] Re: Hi, how can I split line length in Rails?

2010-05-24 Thread Marnen Laibow-Koser
Ainar Abramovich wrote: > Hi to everyone! I need to split one long line in two or multiple > lines.. how can I do that? I have a form where you can write in for > example 200 character long line ("a..."), when I submit > it(line contains no spaces), char line updates in my blog, but the > o