Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coffeebeans & ERB #5

Closed
moiristo opened this issue Sep 5, 2011 · 2 comments
Closed

Coffeebeans & ERB #5

moiristo opened this issue Sep 5, 2011 · 2 comments

Comments

@moiristo
Copy link

moiristo commented Sep 5, 2011

In Rails 3.1 final, when creating a file with both the .coffee and .erb extension doesn't work for me (in any order). The result is that the view is not recognized as a proper respond format and therefore the HTML view of the action is rendered instead (or a missing template error is thrown if no other format is available).

@moiristo
Copy link
Author

moiristo commented Sep 5, 2011

Might be that I misunderstood and that ERB is just available in the coffeescript code, but when I only use the .coffee extension I get an ExecJS compile error.

@markbates
Copy link
Owner

ERB is already available. Just name your file foo.js.coffee and it should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants