-
Notifications
You must be signed in to change notification settings - Fork 2k
CoffeeScript in Rails #1
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Sure, you could totally integrate it with a Rails app in that way:
Go right ahead and make that a helper function or special partial. |
def cs(string) there ya go. :P |
Now, jnicklaus' BistroCar solves this problem neatly: |
I've been having issues with this method, I can't seem to create classes using the I get this error:
The code is:
Any ideas why this would be happening? EDIT: I should point out that the script compiles without error using |
Enhancement: Add more block-comment related tests
Also update package.json with the package name.
Would it be possible to call CoffeeScript compiling calls within a rails app itself and for the written CS code to be converted to JS on the server call? So instead of compiling a separate script, why not just write it natively in the rhtml <%= %> tags, or in the controller or in the helper? seems like a better use of CoffeeScript, especially for teaching or using Prototype or script.aculo.us
The text was updated successfully, but these errors were encountered: