Hey,
I have existing threads with two fields: title and text. When a user clicks "edit", I say, in the new thread form:
<% form.text_area :text, :value => params[:text] %>
params[:text] = the text in the thread which the user wants to edit.
It works fine most of the time, but if I made a new thread and had linebreaks, clicking edit fails.
New form: text: sdfjksdfj sdfjsdf sdfsdf
Those linebreaks are causing some trouble! Where is the problem? Is it storing the text/linebreaks in the params[:text] or in trying to set :value => params[:text]?
Thanks!