| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| | |
|
| | |
|
|\ \
| | |
| | | |
assert_template matches against Regexp
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This allows for more strict template assertions,
while maintaining backward compatibility.
For example, if you use assert_template("foo/bar")
and "foo/bar/baz" was rendered, the test passes.
But if you use assert_template(%r{\Afoo/bar\Z}),
you will catch that a different template was
rendered.
Also, if you passed an unsupported argument to
assert_template() in the past, it would silently
succeed. Now it raises an ArgumentError.
|
|\ \ \
| | | |
| | | | |
ensure u2029 is escaped in escape_javascript helper
|
| |/ / |
|
|/ /
| |
| |
| | |
cols and rows options from textarea.
|
|\ \
| | |
| | | |
Adds :layout option to render :partial when a collection is given.
|
| | | |
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
not set.
This should fix the following issue:
"Rails is not a Rack Application (SCRIPT_NAME vs. relative_url_root ?)"
https://github.com/rails/rails/issues/910
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
| | |
| | |
| | |
| | | |
the update action of resources
|
| | | |
|
|\ \ \
| | | |
| | | | |
Add config.default_method_for_update to support PATCH
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|/ / /
| | |
| | |
| | |
| | |
| | | |
is being rendered
Closes #5025 part 2
|
| | | |
|
|/ /
| |
| |
| | |
view
|
|\ \
| | |
| | | |
form option refactor
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Closes #5025
|
|/ /
| |
| |
| |
| |
| |
| | |
Reset memoized hash keys when new ActionView::Template handler is registered
Conflicts:
actionpack/lib/action_view/template/handlers.rb
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
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]
|
| |
| |
| |
| |
| |
| |
| |
| | |
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]
|
| |
| |
| |
| | |
[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]
|
| |
| |
| |
| | |
[Carlos Antonio da Silva + Rafael Mendonça França]
|