File ./lib/rails/generators/rails/app/templates/config/environments/development.rb.tt: # Only use best-standards-support built into browsers config.action_dispatch.best_standards_support = :builtin File ./lib/rails/application.rb: middleware.use ::ActionDispatch::BestStandardsSupport, config.action_dispatch.best_standards_support if config.action_dispatch.best_standards_support What''s the point of setting action_dispatch.best_standards_support to Symbol when we only care whether it is true or false ? Do we expect that in future there will be other possible values for this setting ? Robert Pankowecki -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
And one more question: Why is this line "config.action_dispatch.best_standards_support = :builtin" added only to environments/development.rb file ? Why are we adding it when the default is True (based on ./actionpack/lib/action_dispatch/railtie.rb) ? The fact that we are setting it only in development environment to an unsupported value that does not change the behavior at all makes me a little confused. Robert Pankowecki -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
I don''t know why it''s different in the development environment
but from
actionpack/lib/action_dispatch/middleware/best_standards_support.rb<https://github.com/rails/rails/blob/6767946374353f90ce05e68d38bcb93dcb8bae56/actionpack/lib/action_dispatch/middleware/best_standards_support.rb>
:
case type
when true
"IE=Edge,chrome=1"
when :builtin
"IE=Edge"
when false
nil
end
The bit of history I found: "Improve best_standards_support to use only
IE=Edge in development
mode<https://github.com/rails/rails/commit/6767946374353f90ce05e68d38bcb93dcb8bae56>
"
So it''s not an unsupported value, but that doesn''t say why we
do so in the
development environment.
Franck
On Mon, Feb 28, 2011 at 3:47 PM, Robert Pankowecki <
robert.pankowecki@gmail.com> wrote:
> File ./lib/rails/generators/rails/app/templates/config/environments/
> development.rb.tt:
> # Only use best-standards-support built into browsers
> config.action_dispatch.best_standards_support = :builtin
>
> File ./lib/rails/application.rb:
> middleware.use ::ActionDispatch::BestStandardsSupport,
> config.action_dispatch.best_standards_support if
> config.action_dispatch.best_standards_support
>
> What''s the point of setting action_dispatch.best_standards_support
to
> Symbol when we only care whether it is true or false ?
> Do we expect that in future there will be other possible values for
> this setting ?
>
> Robert Pankowecki
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to rubyonrails-core@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-core+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>
>
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-core+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en.
My guess is that we do now want to test IE using Chrome mode in development environment because we want to use the application like a user with normal IE to see possible differences in behavior. Robert Pankowecki -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
...My guess is that we do NOT want ... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Maybe Matching Threads
- request.format = :mobile causes error "undefined method `ref' for nil:NilClass"
- Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
- Rails 3 Errno::EAFNOSUPPORT: Address family not supported by protocol - socket(2)
- undefined method `eq' for nil:NilClass
- Omniauth facebook authentication failure