ruby-ejs icon indicating copy to clipboard operation
ruby-ejs copied to clipboard

Serving .ejs files from rails?

Open beno opened this issue 13 years ago • 0 comments

I feel like an idiot for not being able to figure this out, but here goes.

In rails, my assets/javascripts/foo.jst.ejs file is served up as localhost:3000/assets/foo and assets/foo.js, but localhost:3000/assets/foo.ejs gives a routing error. I have some framework code that insists on calling it with the .ejs extension.

I think this should be an simple config somewhere in the asset pipeline, but I can't find it. I realize it is more of and rails question, but perhaps somebody here recognizes this?

beno avatar Sep 23 '12 09:09 beno