coffeebeans
coffeebeans copied to clipboard
trying to decompose .js.coffee into partials fails
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):
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.
ah, good to know...