[Rails] Re: partials and render_to_string

2011-09-19 Thread John Merlino
thanks for response On Sep 19, 4:26 am, Frederick Cheung wrote: > On Sep 18, 7:40 pm, 7stud -- wrote: > > > > 2) What exactly is the point of render_to_string? Why can't we just > > > use "render"? Or do we need to use render_to_string in order to use > > > the jquery append method, for example,

[Rails] Re: partials and render_to_string

2011-09-19 Thread Frederick Cheung
On Sep 18, 7:40 pm, 7stud -- wrote: > > 2) What exactly is the point of render_to_string? Why can't we just > > use "render"? Or do we need to use render_to_string in order to use > > the jquery append method, for example, when appending it to the DOM? > > According to railsguide: > > ... rende

[Rails] Re: partials and render_to_string

2011-09-18 Thread John Merlino
this was incredible response, everything was explained so clearly. On Sep 18, 2:40 pm, 7stud -- wrote: > John Merlino wrote in post #1022569: > > > Hey all, > > > This is my understanding of html and browsers. On the server, html is > > plain text. When the browser sends request to server to fetc

[Rails] Re: partials and render_to_string

2011-09-18 Thread 7stud --
John Merlino wrote in post #1022569: > Hey all, > > This is my understanding of html and browsers. On the server, html is > plain text. When the browser sends request to server to fetch a > document, if the file is not already in html format, perhaps instead > in an rb file, ruby or whatever the s