[Rails] rails removes newlines and spaces from ajax requests

2010-06-10 Thread teesea
Hi I have an app which posts an ajax request with with text area content, but when it does post it it gets all the newlines and multiple spaces removed (need to use multiple spacing for use with markdown code snippets) I've created a sample app which you can see here

[Rails] Re: rails removes newlines and spaces from ajax requests

2010-06-10 Thread teesea
:37 pm, teesea t.co...@gmail.com wrote: Hi I have an app which posts an ajax request with with text area content, but when it does post it it gets all the newlines and multiple spaces removed (need to use multiple spacing for use with markdown code snippets) I've created a sample app which you

[Rails] Re: rails removes newlines and spaces from ajax requests

2010-06-10 Thread teesea
: On Jun 10, 1:37 pm, teesea t.co...@gmail.com wrote: the echo action which the  requests are sent to simply removes the controller and action keys from params and then does render :text = params.to_json Anyone have any ideas what I'm doing wrong? I think the way you're posting data