coffeebeans icon indicating copy to clipboard operation
coffeebeans copied to clipboard

trying to decompose .js.coffee into partials fails

Open fringd opened this issue 13 years ago • 2 comments

main.js.coffee

...
<%=render :partial => 'cleanup' %>

_cleanup.js.coffee

x = 1
alert x

results in

ActionView::Template::Error (SyntaxError: reserved word "var" on line 12):

fringd avatar Jan 26 '12 15:01 fringd

Not really enough information to go on there.

As an FYI this gem is not really maintained any more as most of it's functionality has been included in https://github.com/rails/coffee-rails which is bundle with Rails 3.1+ apps by default.

markbates avatar Jan 26 '12 15:01 markbates

ah, good to know...

fringd avatar Jan 26 '12 16:01 fringd