I found out there is a new parameter for the “render” function, but I
couldn’t find any information or documentation on it, specically on what
we can do with |page|, there are examples on the new book “agile Web
Development with rails”, but it doesn’t contains any information about
it, like: on p.559
I found out there is a new parameter for the “render” function, but I
couldn’t find any information or documentation on it, specically on what
we can do with |page|, there are examples on the new book “agile Web
Development with rails”, but it doesn’t contains any information about
it, like: on p.559
I think |page| is often used instead of |generator| to help you think
about what you’re doing to the web page, and worry less that you just
happen to be doing that indirectly by generating javascript.
This was confusing for me too at first. It’s an instance of the
JavaScriptGenerator class: Peak Obsession
And if you’re going to use the page.visual_effect method, more info
about that is here: Peak Obsession
I think |page| is often used instead of |generator| to help you think
about what you’re doing to the web page, and worry less that you just
happen to be doing that indirectly by generating javascript.