• A
    Let escape_javascript handle conversion to string · dd0cfb03
    Andrew Vit 提交于
    This brings `escape_javascript` in line with the behavior of `json_escape` and
    allows other value types to be output without needing explicit casting in the
    view template.
    
    Example:
    
        <%= javascript_tag do %>
          var locale = '<%== j I18n.locale %>'; // locale is a symbol
        <% end %>
    dd0cfb03
javascript_helper.rb 3.0 KB