| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | | |
|
|\ \ \
| | | |
| | | | |
FormOptionsHelper refactor
|
| | | | |
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
BTW, select works quite faster then find_all:
require 'benchmark'
n = [1]*100_000_000
Benchmark.bm do |x|
x.report { n.select { |a| a > 1 } }
x.report { n.find_all { |a| a > 1 } }
end
user system total real
7.590000 0.010000 7.600000 ( 7.927171)
9.650000 0.010000 9.660000 ( 9.634406)
|
| | |
| | |
| | |
| | |
| | |
| | | |
There was a mix, sometimes patch first, sometimes put first.
Use always patch first, since this is going to be the
primary verb for updates.
|
| | |
| | |
| | |
| | | |
the update action of resources
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
PATCH is the correct HTML verb to map to the #update action. The
semantics for PATCH allows for partial updates, whereas PUT requires a
complete replacement.
Changes:
* adds config.default_method_for_update you can set to :patch
* optionally use PATCH instead of PUT in resource routes and forms
* adds the #patch verb to routes to detect PATCH requests
* adds #patch? to Request
* changes documentation and comments to indicate support for PATCH
This change maintains complete backwards compatibility by keeping :put
as the default for config.default_method_for_update.
|
|/ / |
|
| | |
|
| | |
|
|\ \
| | |
| | | |
add selected and disabled options to grouped select
|
| | | |
|
|\ \ \
| |/ /
|/| | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This gives a lot more flexibility to the user, for instance to generate
a collection of check boxes and labels, allowing to add custom classes
or data-* attributes to the label/check_box using another object
attribute.
This basically mimics options_for_select functionality that accepts a
third option for each item to generate html attributes for each option.
|
| | | |
|
|/ / |
|
|\ \
| | |
| | |
| | |
| | | |
Conflicts:
activerecord/lib/active_record/relation/query_methods.rb
|
| | |
| | |
| | |
| | |
| | |
| | | |
$ curl -s http://www.ietf.org/rfc/rfc4287 | grep -io ATOM | sort | uniq -c
582 atom
175 Atom
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes #4919
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adds `image_url`, `javascript_url`, `stylesheet_url`, `audio_url`,
`video_url`, and `font_url` to assets tag helper. These URL helpers will
return the full path to your assets. This is useful when you are going
to reference this asset from external host.
|
| | |
| | |
| | |
| | |
| | |
| | | |
collection_radio_buttons
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | | |
And options_from_collection_for_select as well.
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This will make it easy for the user to handle how check box/radio and
labels should be generated, abstracting any text/value/default html
options required to make it work.
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* Extract value sanitization from default name and id method and new
collection helpers;
* No need to sanitize value in default name and id always;
* Improve value_before_type_cast to avoid concating the same method name
string twice.
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | | |
collection_radio_buttons
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | | |
module
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | | |
When the new html5 attribute :form is given to the check_box helper, it
should be replicated to the hidden field as well. Closes #4848
|
|\ \ \
| |/ /
|/| | |
check_box with nil as unchecked value should be HTML safe
|
| | |
| | |
| | |
| | | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|
| | |
| | |
| | |
| | |
| | |
| | | |
All the logic is based on the HTML_ESCAPE constant available in
ERB::Util, so it seems more logic to have the entire method there and
just delegate the helper to use it.
|
|\ \ \
| | | |
| | | | |
Improvements on some url helper methods and tests
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Reorganize button_to implementation a bit.
Also small refactor on current_page? method.
|
| | | | |
|