Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 842073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T05:54:08+00:00 2026-05-15T05:54:08+00:00

How to display a string in correct format as i enter it in the

  • 0
  • How to display a string in correct format as i enter it in the textarea in ruby on rails?

  • actually i enter some string in the textarea as:


    my name
    is jamal.

  • now there is a next line starting after name… but i get the following in the view…


    my name is jamal

  • which i don’t want to be like that… so, how to get the correct format..?

  • i hope u understand…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T05:54:08+00:00Added an answer on May 15, 2026 at 5:54 am

    take a look at simple_format method

    i.e. <%= simple_format(params[:text]) %> or <%= simple_format(@text) %> in your erb/rhtml view code

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone please guide me on the correct format string to display a time
I am trying to format a string to display two columns for a high
Input string was not in a correct format. Description: An unhandled exception occurred during
I want to display the string Hello in the TextBlock. If the Culture is
I'm receiving remote notification with string \U00d8\U00aa\U00d8\U00aa\U00d8\U00a7\U00d8\U00a7 I would like to display this string
I am using PHP, i want to display a string which comes as title
How can you display a long string, website address, word or set of symbols
I want to display a lengthy rotated string in the background of one of
When I display too long of a string in the PopUp control of the
I want to display two column of my database into two JComboBox String rq1

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.