ruby - Preseve line breaks from textarea in Rails controller submitted with submit_to_remote -


I do not believe that this is not a standard way of doing this, but I am submitting content from a text A rail controller, and does not preserve the breakdown of the line (of any form)

Here is my view code:

  f.text_area: keywords, cols = & Gt; 50, Rows = & gt; 10 submit_to_remote 'button', "# {T} add_keywords"} ",: html = & gt; {: Id = & gt; 'Add_keywords_button'} ,: url = & gt; {: Controller = & gt; : Keywords, Action = & gt; : Add_to_site} ,: escape = & gt; True: loading = & gt; "Form.helment.disabled ('add_keyword_button')",: complete => "Form.aement.snibable ('add_keyword_button');",: update = & gt; {: Success = & gt; "Keywords_table_decorator" ,: failure = & gt; "Message"  

after submitting it goes to an administrator, which should be able to parse each keyword, line by line I have tried all the changes on the following topic:

  @keywords = params [: site_keywords] [: keyword] @keywords.gsub (/ \ n | \ r | \ r \ n /, '*')  

Just to see if I can get something that I can split with it further.

I appreciate the advice to work on it.

Understand this. For all lessons I had this reset in the CSS:

  White-space: normal;  

Deleting it removes the problem.


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -