| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|\ |
|
| |\
| | |
| | |
| | |
| | | |
Conflicts:
actionpack/lib/action_view/helpers/asset_tag_helper.rb
|
| | |
| | |
| | | |
[ci-skip]
|
|/ /
| |
| |
| | |
fragment caching can benefit from it.
|
| |
| |
| |
| | |
http://guides.rubyonrails.org/security.html#regular-expressions
|
|/
|
|
|
| |
This will set image's both width and height attributes to
value passed in size option.
|
| |
|
|
|
|
| |
I think this should be explicit as the password fields behaviour is inconsistent with other fields in this regard.
It had me scratching my head until I dug through the source code.
|
| |
|
|
|
|
| |
Also just set the hash value instead of merging when it's only one key.
|
|
|
|
|
|
|
|
|
|
| |
The separation option enable to keep entire words, lines or anything.
To split by line, like github, we can set the separation option as \n.
To split by word, like google, we can set the separation option as " ".
The radius option represent the number of lines or words we want to
have in the result.
The default behaviour is the same. If we don't set the separation
option, it split the text any where.
|
|\ |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
spiked in the cache_digests plugin) *DHH*
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
ActionDispatch::Routing::UrlFor was always required in UrlHelpers. This
was changed by splitting previous implementation of UrlHelper into 2
modules: ActionView::Helpers::UrlHelper and
ActionView::Routing::UrlHelper. The former one keeps only basic
implementation of url_for. The latter adds features that allow to use
routes and is only required when url_helpers or mounted_helpers are
required.
|
| |
| |
| |
| |
| |
| | |
Automatically handling mime types for things other than :rss and :atom
is not functionality that justifies dependency on Mime::Type from
actionpack.
|
| |
| |
| |
| |
| |
| | |
This is another step in moving Action View's dependencies in Action Pack
to Action View itself. Also, HtmlScanner seems to be better suited for
views rather than controllers.
|
| |
| |
| |
| |
| |
| |
| | |
It's just a duplicate of ActionController::ModelNaming. These are just a
simple helpers for decoupling Active Model, so it does not make sense to
extract it to Active Support, but the point is to decouple also Action
View and Action Pack
|
| |
| |
| |
| |
| |
| |
| | |
Since it's more about DOM classes and ids it belongs to Action View
better. What's more, it's more convenient to make it part of Action View
to follow the rule that Action Pack can depend on Action View, but not
the other way round.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| | |
|
|\ \
| |/
|/| |
Extended documentation for `time_ago_in_words` helper
|
| | |
|
|\ \ |
|
| |/
| |
| |
| |
| | |
Make doc output in grouped_options_for_select divider example match
actual output. The options groups were in backwards order of actual.
|
| | |
|
|/ |
|
|\ |
|
| | |
|
| |
| |
| | |
https://github.com/rails/journey/issues/40
|
| |
| |
| |
| | |
Updated documentation to demonstrate start_hour and end_hour options
|
| | |
|
| |
| |
| |
| | |
We can avoid creating extra hashes with #merge, and use #merge! instead.
|
| |
| |
| |
| |
| |
| |
| | |
Further simplify the option_html_attributes method after the changes
introduced in dacbcbe55745aa9e5484b10b11f65ccca7db1c54 to not escape the
html options here (since they're going to be escaped down the chain in
content tag).
|
| |
| |
| |
| | |
if nil or an empty array is passed into form_for you get a horrible error message, this one is much more indicative of what the programmer needs to know to fix the problem.
|
| |
| |
| |
| |
| |
| | |
Thanks to Marek Labos & Nethemba
CVE-2012-3465
|
| |
| |
| |
| | |
can write `form_for @record, data: { behavior: 'autosave' }` instead of `form_for @record, html: { data: { behavior: 'autosave' } }` *DHH*
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
We recommend the use of Unobtrusive JavaScript instead. For example:
link_to "Greeting", "#", :class => "nav_link"
$(function() {
$('.nav_link').click(function() {
// Some complex code
return false;
});
});
or
link_to "Greeting", '#', onclick: "alert('Hello world!'); return false", class: "nav_link"
for simple cases.
This reverts commit 3acdd652e9fe99481c879c84c5807a84eb9ad724.
|
| | |
|
|/
|
|
|
|
| |
Rails were including 'application.js' to the pack when using
`javascript_include_tag :all` even there's no application.js in the
public directory.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
object
|