3.1 - CoffeeScript in view templates

With rjs we did this:


page.replace_html “products”, render(@products)

With jquery and ujs we do this:


$(“products”).update("<%= escape_javascript(render(@products)) %>")

How are we going to accomplish something similar in Rails 3 with

I’m not sure it would be any different in CoffeeScript.

I think the syntax for calling a function is the same.

I think your right, but unless I’m missing something, I don’t think
you can include eruby tags inside of coffeescripts.

On Mon, May 9, 2011 at 8:53 AM, Curtis Schiewek
[email protected]wrote:

Curtis, it should work as it did in Rails 3.0. Thus, I would give it a
in your existing Rails application.

Good luck,