[Rails] Re: capture, blocks, and + operator

2011-08-03 Thread 7stud --
John Merlino wrote in post #1014812: > My understanding of the + operator is as follows. The + operator works > differently with arrays than it does with scalar values. With arrays, > when > taking two arrays as operands, it returns an array containing everything > in > the two oeprand arrays. In e

[Rails] Re: capture, blocks, and + operator

2011-08-03 Thread 7stud --
The docs say this about content_tag: == Returns an HTML block tag of type name surrounding the content. == Ok, not too helpful unless you understand the subtleties of css/html speak. But the docs provide some examples that should help clarify things: content_tag(:p, "Hello world!") # => Hell

[Rails] Re: capture, blocks, and + operator

2011-08-03 Thread John Merlino
My understanding of the + operator is as follows. The + operator works differently with arrays than it does with scalar values. With arrays, when taking two arrays as operands, it returns an array containing everything in the two oeprand arrays. In essence, + operator performs addition on scalar