I want to use the same controller for every javascript file...so I was thinking something like this? What I'm not sure of is what to pass to File.read.
class Javascript < R '/*.js' JS = File.read() def get @headers['Content-Type'] = 'text/javascript; charset=utf-8' JS end end Is there a better way to do this? I was looking at adam's project: https://github.com/minikomi/tokyoartparties/blob/master/src/Drinking.rb and I didn't see a controller for his css, so I'm kind of wondering how he does it... Thanks, -Tony _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list