bem-on-rails icon indicating copy to clipboard operation
bem-on-rails copied to clipboard

Rendering a Block on a js.erb file

Open justguerra opened this issue 10 years ago • 1 comments

My blocks renders in 'html.erb' files, but aren't rendering in a 'js.erb'.

That's my code on the js.erb:

js $('#my-item').append( '<%= block "post-comment", comment: @comment %>' );

When I check on the browser this is file looks like this:

js $('#my-item').append( '' );

Since is rendering in "html.erb", shouldn't It render in all "*.erb" files? There's some extra configuration to do?

justguerra avatar Mar 26 '15 19:03 justguerra

Hi! No configuration for this. This look like a bug.

awinogradov avatar Mar 27 '15 07:03 awinogradov