> Coffeescript is very sensitive to whitespace, and it does not support !==
> and ===
> if you have that in your code that might be a reason for the error, cost me
> an hour today:)
> Why don't you post your code in a gist so that we can take a look at it?
>
> Martin

Well, I have 2 scripts so far. One is 'tour.coffee' and the other is
'dynamic_menu.coffee'.

Whenever I make a change to 'tour.coffee', everything works just fine
- it will compile over and over again as I make changes.

However, if I make a change to 'dynamic_menu.coffee' - a file that
isn't being directly loaded yet - that is when I get the compile error
(regardless of what is in this file).

https://gist.github.com/973664

I don't know if this dynamic_menu.js works - I haven't bothered to
really test it. But the overall point is that I can put:

    alert "Hey"

... and it will still have a compile error.

Is there a better way I can do dependencies? 'tour.js' is supposed to
depend on this dynamic_menu.js. I would have used require_jquery.js
before, but I don't think I can use that with coffeescript anymore.
However, if coffeescript can include them internally, then that would
be fantastic and might solve this compiling problem in one go.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to