1. 04 11月, 2015 1 次提交
  2. 06 9月, 2015 1 次提交
  3. 05 9月, 2015 1 次提交
  4. 30 7月, 2015 2 次提交
    • S
      Cut string allocations in content_tag_string · e76a8435
      schneems 提交于
      content_tag's first argument is will generate a string with an html tag so `:a` will generate: `<a></a>`. When this happens, the symbol is implicitly `to_s`-d so a new string is allocated. We can get around that by using a frozen string instead which
      
      This change buys us 74,236 bytes of memory and 1,855 fewer objects per request.
      e76a8435
    • S
      Optimize hash key · 2e95d2ef
      schneems 提交于
      No idea why on earth this hash key isn't already optimized by MRI, but it isn't. 💩
      
      This change buys us 74,077 bytes of memory and 1,852 fewer objects per request.
      2e95d2ef
  5. 24 7月, 2015 1 次提交
  6. 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
  7. 21 4月, 2015 1 次提交
  8. 10 4月, 2015 1 次提交
  9. 04 4月, 2015 1 次提交
  10. 01 4月, 2015 1 次提交
  11. 23 3月, 2015 1 次提交
  12. 18 3月, 2015 1 次提交
  13. 07 2月, 2015 1 次提交
    • C
      Indicate link_to creates an anchor element · 7fb6759a
      Colin Rymer 提交于
      The `link_to` helper generates an HTML anchor element (consisting of opening and closing anchor tags and an element body). The docs currently state the a link tag is generated (which would indicate a tag like `<link>`, which is another valid HTML tag), so this change clarifies that an anchor element is actually generated.
      
      [ci skip]
      7fb6759a
  14. 21 12月, 2014 1 次提交
  15. 02 10月, 2014 1 次提交
    • K
      do not generate blank options in mailTo · a13ad4a6
      Kuldeep Aggarwal 提交于
      when mail_to generate blank options for any passed options(cc, bcc, body, subject)
      then MICROSOFT OUTLOOK treats it differently and set wrong values in different options.
      a13ad4a6
  16. 22 9月, 2014 1 次提交
  17. 14 6月, 2014 1 次提交
  18. 07 6月, 2014 1 次提交
  19. 18 4月, 2014 1 次提交
  20. 19 3月, 2014 1 次提交
    • D
      Reorder conditional logic · 4f90298d
      David Pedersen 提交于
      According to the best practice that "unless not" and "unless else"
      is hard to follow logically the link_to_unless and link_to_if
      were reversed.
      4f90298d
  21. 25 2月, 2014 1 次提交
  22. 03 2月, 2014 1 次提交
  23. 28 10月, 2013 1 次提交
  24. 13 10月, 2013 1 次提交
  25. 19 9月, 2013 1 次提交
    • A
      Add params option for button_to · e6e0579d
      Andy Waite 提交于
      The parameters are rendered as hidden form fields within the generated
      form. This is useful for when a record has multiple buttons associated
      with it, each of which target the same controller method, but which
      need to submit different attributes.
      e6e0579d
  26. 03 8月, 2013 1 次提交
  27. 02 8月, 2013 1 次提交
  28. 01 8月, 2013 1 次提交
  29. 20 7月, 2013 1 次提交
  30. 07 7月, 2013 2 次提交
  31. 20 6月, 2013 1 次提交
  32. 17 6月, 2013 1 次提交
  33. 13 6月, 2013 1 次提交
    • W
      Adding documentation to +polymorphic_url+ · fa0cff48
      wangjohn 提交于
      concerning the options that it inherits from +url_for+. The way that
      +polymorhpic_url+ is built allows it to have options
      like +:anchor+, +:script_name+, etc. but this is currently not
      documented.
      fa0cff48
  34. 01 6月, 2013 1 次提交
  35. 05 4月, 2013 2 次提交
  36. 03 4月, 2013 1 次提交
  37. 07 2月, 2013 1 次提交
    • M
      Fixing the examples for button_to · 741b291d
      Marc Baumbach 提交于
      The examples do not generate the output they intend to due to not explicitly declaring the hash separations. This causes it to be treated as one parameter instead of the intended two parameters.
      741b291d