Rails get dump of rendered view
How can i include render response of a view inside another , but dumped.

like i am currently using:

    css: "<%= render :partial => "myurl/blah", :formats=> [:css], :layout => false %>",

( in a rendered js file, where i am creating a json object and including various other files too.. )

The response here is like this :

    css: "#utilities {width: 800px;}
    #utilities p,
    #utilities ul {margin-bottom: 1em;}
    #utilities_scroll {height:500px; padding:0 10px 0 10px; overflow:scroll;}
    #utilities_scroll_inner {width: 733px;}
    #utilities-search-form {margin-top: 20px;} .. ."

However i want dump of it like this : 

    css: "#utilities {width: 800px;}\n#utilities p,\n#utilities ul {margin-bottom:  .. "
Rails get dump of rendered view
===

How can i include render response of a view inside another , but dumped.

like i am currently using:

    css: "<%= render :partial => "myurl/blah", :formats=> [:css], :layout => false %>",

( in a rendered js file, where i am creating a json object and including various other files too.. )

The response here is like this :

    css: "#utilities {width: 800px;}
    #utilities p,
    #utilities ul {margin-bottom: 1em;}
    #utilities_scroll {height:500px; padding:0 10px 0 10px; overflow:scroll;}
    #utilities_scroll_inner {width: 733px;}
    #utilities-search-form {margin-top: 20px;} .. ."

However i want dump of it like this : 

    css: "#utilities {width: 800px;}\n#utilities p,\n#utilities ul {margin-bottom:  .. "