This project is archived and is in readonly mode.
binary files are attempted to be pre compiled as erb
-
Roger
- Tag changed from bug, edge to bug, edge
--- a/actionpack/lib/action_view/template_handlers/erb.rb +++ b/actionpack/lib/action_view/template_handlers/erb.rb @@ -48,11 +48,14 @@ module ActionView
self.erb_trim_mode = '-' def compile(template)-
begin src = ::ERB.new("<% __in_erb_template=true %>#{template.source}", nil, erb_trim_mode, '@output_buffer').src # Ruby 1.9 prepends an encoding to the source. However this is # useless because you can only set an encoding on the first line RUBY_VERSION >= '1.9' ? src.sub(/\A#coding:.*\n/, '') : src -
rescue Exception -
end end endend
seems to be a temporary fix. Better might be to only erb compile .rhtml or .html.erb files :)
-
Tom Lea
Is there a good reason why you don't put this static content in /public/simplegrey2/original/grey2/din_mittle.swf
Putting it inside /app/views makes rails deal with it, putting it in public makes the web server deal with it.
Basically, if you don't need rails to handle it, stick it in public, otherwise you are wasting valuable mongrel/whatever time dealing with stuff that apache/nginx is better at shifting.
-
Roger
Nope. I was just pointing out a difference ["gotcha"] between 2.1 and edge. If it's a good gotcha then I guess leave it in there ? I'm not sure :)
-
Repository
- State changed from new to resolved
(from [2fc6c7dd05b9481ed81fe19c8fc0cc7915868404]) Validate template extensions [#1187 binary files are attempted to be pre compiled as erb state:resolved] http://github.com/rails/rails/co...