| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |/ / / |
|
| | | | |
|
|/ / /
| | |
| | |
| | | |
cols and rows options from textarea.
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Optimize routes generation in simple cases.
If you pass to the route helper the same amount of arguments
as the required segments, route generation will be optimized
as a string interpolation. After this commit, `post_path(post)`
is about 6.5 times faster, `post_url(post)` is about 5 times.
|
| | | | |
|
|/ / / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* master-security:
Ensure [] respects the status of the buffer.
delete vulnerable AS::SafeBuffer#[]
use AS::SafeBuffer#clone_empty for flushing the output_buffer
add AS::SafeBuffer#clone_empty
fix output safety issue with select options
Conflicts:
actionpack/lib/action_view/helpers/tags/base.rb
|
| | | | |
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
Closes #393
|
| | | |
| | | |
| | | |
| | | | |
variables in the form builder
|
| |/ /
|/| | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
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]
|