Display the RETURN key as a new line?

In a form field, if i user decides to hit enter to start new lines,
when they submit, they new lines don’t start as new lines. There is a
whole stream of text.

How do i make it so if the user hits enter during a text field, it
dispalys a new line? Thanks

thanks phillip, it looks great, but I am really relaly bad at reading
API’s (especially when im not good with a language)

Could u just explain relaly quick what I need to do to get the bare
minimums working? Thanks!

In a form field, if i user decides to hit enter to start new lines,
when they submit, they new lines don’t start as new lines. There is a
whole stream of text.

How do i make it so if the user hits enter during a text field, it
dispalys a new line? Thanks

simple_format should do what you want.

http://api.rubyonrails.org/classes/ActionView/Helpers/TextHelper.html#M001751

wow marnen, chill ok? I read the API, but its only like 3 sentences,
and its not enough info for me to get started. I dont know wehre to
put those lines.

But now I understand, I watched one of Ryan B. tutorials, and in
it, one of the things he does is use simple_format

And let me tell u, what the api said is not comprehendible on how to
use it. without Ryan B showing us, i would not have gotten it. thanks
phillip for telling me about simple_format

David Z. wrote:

thanks phillip, it looks great, but I am really relaly bad at reading
API’s (especially when im not good with a language)

Could u just explain relaly quick what I need to do to get the bare
minimums working? Thanks!

You’re kidding, right? If you’re too lazy to read documentation, why
should anyone else do it for you?

Best,

Marnen Laibow-Koser
http://www.marnen.org
[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs