1. 26 8月, 2012 1 次提交
    • V
      correct handling of date selects when using both disabled and discard options · 130fe2b1
      Vasiliy Ermolovich 提交于
      we should take disabled option not only from `html_options` hash but from
      `options` hash too like `build_select` method does it. So
      
      datetime_select("post", "updated_at", { :discard_minute => true }, { :disabled => true })
      datetime_select("post", "updated_at", :discard_minute => true , :disabled => true)
      
      both these variants work now
      
      closes #7431
      130fe2b1
  2. 25 8月, 2012 1 次提交
  3. 22 8月, 2012 1 次提交
  4. 19 8月, 2012 1 次提交
  5. 17 8月, 2012 1 次提交
  6. 15 8月, 2012 1 次提交
  7. 14 8月, 2012 2 次提交
  8. 12 8月, 2012 1 次提交
  9. 11 8月, 2012 2 次提交
  10. 09 8月, 2012 1 次提交
  11. 08 8月, 2012 2 次提交
  12. 07 8月, 2012 2 次提交
  13. 06 8月, 2012 1 次提交
  14. 05 8月, 2012 1 次提交
  15. 04 8月, 2012 1 次提交
  16. 03 8月, 2012 1 次提交
  17. 30 7月, 2012 1 次提交
  18. 24 7月, 2012 1 次提交
  19. 22 7月, 2012 2 次提交
  20. 18 7月, 2012 1 次提交
  21. 09 7月, 2012 1 次提交
  22. 08 7月, 2012 1 次提交
  23. 07 7月, 2012 1 次提交
  24. 03 7月, 2012 1 次提交
  25. 01 7月, 2012 1 次提交
  26. 15 6月, 2012 1 次提交
  27. 12 6月, 2012 1 次提交
  28. 01 6月, 2012 4 次提交
  29. 31 5月, 2012 1 次提交
    • S
      accept a block in button_to helper · ab7a80ea
      Sergey Nartimov 提交于
      Make possible to use a block in button_to helper if button text is hard
      to fit into the name parameter, e.g.:
      
          <%= button_to [:make_happy, @user] do %>
            Make happy <strong><%= @user.name %></strong>
          <% end %>
          # => "<form method="post" action="/users/1/make_happy" class="button_to">
          #      <div>
          #        <button type="submit">
          #          Make happy <strong>Name</strong>
          #        </button>
          #      </div>
          #    </form>"
      ab7a80ea
  30. 28 5月, 2012 1 次提交
    • P
      Fix sorting of helpers from different paths · e4aaac13
      Piotr Sarnacki 提交于
      When more than one directory for helpers is provided to a controller, it
      should preserver the order of directories. Given 2 paths:
      
          MyController.helpers_paths = ["dir1/helpers", "dir2/helpers"]
      
      helpers from dir1 should be loaded first. Before this commit, all
      helpers were mixed and then sorted alphabetically, which essentially
      would require to rename helpers to get desired order.
      
      This is a problem especially for engines, where you would like to be
      able to predict accurately which engine helpers will load first.
      
      (closes #6496)
      e4aaac13
  31. 27 5月, 2012 2 次提交