1. 02 2月, 2016 2 次提交
  2. 28 1月, 2016 1 次提交
  3. 13 1月, 2016 1 次提交
  4. 31 12月, 2015 1 次提交
  5. 30 12月, 2015 1 次提交
    • J
      TestController#parameters returns AC::Parameters · d8e98897
      Justin Coyne 提交于
      Fixes #22827
      ActionView::TestCase::TestController#parameters should return an
      instance of ActionController::Parameters rather than a hash. This
      enables helper methods to use the correct interface.
      d8e98897
  6. 22 12月, 2015 1 次提交
  7. 21 12月, 2015 1 次提交
    • G
      No more no changes entries in the CHANGELOGs · c5b6ec7b
      Genadi Samokovarov 提交于
      During the `5.0.0.beta1` release, the CHANGELOGs got an entry like the
      following:
      
      ```
      * No changes.
      ```
      
      It is kinda confusing as there are indeed changes after it. Not a
      biggie, just a small pass over the CHANGELOGs.
      
      [ci skip]
      c5b6ec7b
  8. 19 12月, 2015 3 次提交
  9. 13 11月, 2015 2 次提交
  10. 11 11月, 2015 1 次提交
  11. 10 11月, 2015 1 次提交
  12. 09 11月, 2015 1 次提交
  13. 08 11月, 2015 1 次提交
  14. 04 11月, 2015 1 次提交
  15. 30 10月, 2015 2 次提交
  16. 21 10月, 2015 1 次提交
  17. 08 10月, 2015 2 次提交
  18. 06 10月, 2015 1 次提交
  19. 25 9月, 2015 1 次提交
  20. 05 9月, 2015 1 次提交
    • B
      `url_for` does not modify polymorphic options · ee63532d
      Bernerd Schaefer 提交于
      The `url_for` methods in `actionpack` and `actionview`
      now make a copy of the provided options
      before generating polymorphic paths or URLs.
      
      The bug in the previous behavior
      is most noticeable in a case like:
      
          url_options = [:new, :post, param: 'value']
      
          if current_page?(url_options)
            css_class = "active"
          end
      
          link_to "New Post", url_options, class: css_class
      ee63532d
  21. 28 8月, 2015 1 次提交
    • V
      - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of ... · 7f23c5d5
      Vipul A M 提交于
      - Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of  user passed `options[:delimited_regex]` if available. Changed `DELIMITED_REGEX` to `DEFAULT)DELIMITED_REGEX` to signify what it means.
      - Added tests for number to delimited and number to currency in both actionview and activesupport.
      
      Changes
      
      Changes
      7f23c5d5
  22. 12 8月, 2015 2 次提交
    • J
      Make disable_with default in submit_tag · 3822a322
      Justin Schiff 提交于
      Prevents double submission by making disable_with the default.
      
      Default disable_with option will only be applied if user has not
      specified her/his own disable_with option, whether that is in the
      `data-disable-with` string form or the
      `:data => { :disable_with => "Saving..." }` hash form. disable_with
      will default to the value attribute.
      
      A configuration option was added to opt out of this functionality if
      the user so desires.
      `config.action_view.automatically_disable_submit_tag = false`
      3822a322
    • M
      Sometimes you need a specific break sequence while using word wrap and as... · cf93c6ae
      Mauricio Gomez Aguinaga 提交于
      Sometimes you need a specific break sequence while using word wrap and as today the only option we have is "\n" and is hardcoded.
      
      With this change you will be able to specify any break sequence ("\r\n" for example) as an option.
      
      adding proper documentation for break_sequence in ActionView::Helpers::TextHelper.word_wrap
      
      adding some more documentation for word_wrap custom break sequence and making sure we use new hash syntax
      cf93c6ae
  23. 27 7月, 2015 1 次提交
  24. 08 7月, 2015 1 次提交
    • D
      Support explicit defintion of resouce name for collection caching. · 5a41d004
      Dov Murik 提交于
      If a template includes `# Template Collection: ...` anywhere in its
      source, that name will be used as the cache name for the partial that is
      rendered for the collection.
      
      This allows users to enable collection caching even if the template
      doesn't start with `<% cache ... do %>`.
      
      Moreover, the `# Template Collection: ...` notation is recognized in all
      template types (and template types other than ERB can define a
      resource_cache_call_pattern method to allow the `cache ... do` pattern
      to be recognized too).
      5a41d004
  25. 29 6月, 2015 1 次提交
    • R
      Fix cache issue when different partials use the same collection · da167457
      Roque Pinel 提交于
      Adds the `virtual_path` option to `cache_fragment_name` so it can
      be provided when needed.
      
      That allows `cache_collection_render` to get the appropriate cache
      key with the digest generated based on the template and prevent
      collision with other templates that cache the same collection.
      da167457
  26. 23 6月, 2015 1 次提交
    • D
      Improve detection of partial templates eligible for collection caching. · d51e2eef
      Dov Murik 提交于
      The regular expression which was used to detect partial templates that
      begin with a `<% cache ... do %>` call missed some cases.  This commits
      attempts to improve the detection for some cases such as multi-line
      comments at the beginning of the template.  The different templates are
      listed in two new unit test methods.
      
      Note that specially crafted Ruby code can still evade such `cache`-call
      detection: for example, a user might have its own method which itself
      calls the Rails `cache` helper. In such a case, the template's code
      doesn't start with a literal `cache` string and therefore will not be
      eligible for collection caching.
      d51e2eef
  27. 08 6月, 2015 1 次提交
    • G
      Raise an ArgumentError when `include_blank` is false for a required field in · 07754073
      Grey Baker 提交于
      `Tags::Base#select_content_tag`.
      
      Previously, passing a falsey value to `include_blank` would be ignored if the
      field was required, and a blank line would still be inserted. The following will
      now raise instead of quietly failing:
      
      `select("post", "category", %w(a required field), { include_blank: false }, required: 'required')`
      07754073
  28. 25 5月, 2015 1 次提交
    • Y
      Use ActiveSupport::SafeBuffer when flushing content_for · 7c988f80
      Yoong Kang Lim 提交于
      Previously, when content_for is flushed, the content
      was replaced directly by a new value in
      ActionView::OutputFlow#set. The problem is this new
      value passed to the method may not be an instance of
      ActiveSupport::SafeBuffer.
      
      This change forces the value to be set to a new
      instance of ActiveSupport::SafeBuffer.
      7c988f80
  29. 16 5月, 2015 1 次提交
  30. 14 5月, 2015 1 次提交
    • H
      Do not put partial name to local_assigns when rendering without an object · bef9484c
      Henrik Nygren 提交于
      When one rendered a partial template without specifying an object
      or a collection (e.g. <%= render partial: 'partial_name' %>), Rails
      would make an object called :partial_name available in local_assigns.
      I don't think this was the intended behavior, since no local variable
      called 'partial_name' gets defined in the view.
      bef9484c
  31. 05 5月, 2015 2 次提交
  32. 01 5月, 2015 1 次提交
    • Y
      Revert "Merge pull request #19844 from stevenspiel/link_to_if_block_helper_addition" · 14d0e070
      Yves Senn 提交于
      This reverts commit d459b001, reversing
      changes made to 4d4950fa.
      
      😓
      
      The block is not supposed to be passed to `link_to`. It's used for a
      customized behavior of the `condtion = false` case. The docs
      illustrate that like so:
      
      ```
      <%=
         link_to_if(@current_user.nil?, "Login", { controller: "sessions", action: "new" }) do
           link_to(@current_user.login, { controller: "accounts", action: "show", id: @current_user })
         end
      %>
      ```
      14d0e070