- 02 2月, 2016 2 次提交
-
-
由 Rafael Mendonça França 提交于
And improve changelongs. [ci skip]
-
由 Sean Griffin 提交于
-
- 28 1月, 2016 1 次提交
-
-
由 Bart de Water 提交于
-
- 13 1月, 2016 1 次提交
-
-
由 Yves Senn 提交于
-
- 31 12月, 2015 1 次提交
-
-
由 Santiago Pastorino 提交于
Fixes #22773
-
- 30 12月, 2015 1 次提交
-
-
由 Justin Coyne 提交于
Fixes #22827 ActionView::TestCase::TestController#parameters should return an instance of ActionController::Parameters rather than a hash. This enables helper methods to use the correct interface.
-
- 22 12月, 2015 1 次提交
-
-
由 Yves Senn 提交于
[ci skip]
-
- 21 12月, 2015 1 次提交
-
-
由 Genadi Samokovarov 提交于
During the `5.0.0.beta1` release, the CHANGELOGs got an entry like the following: ``` * No changes. ``` It is kinda confusing as there are indeed changes after it. Not a biggie, just a small pass over the CHANGELOGs. [ci skip]
-
- 19 12月, 2015 3 次提交
-
-
由 yuuji.yaginuma 提交于
-
由 eileencodes 提交于
-
由 Sameer Rahmani 提交于
`I18n.translate` helper will wrap the missing translation keys in a <span> tag only if `debug_missing_translation` configuration has a truthy value. Default value is `true`. For example in `application.rb`: # in order to turn off missing key wrapping config.action_view.debug_missing_translation = false
-
- 13 11月, 2015 2 次提交
- 11 11月, 2015 1 次提交
-
-
由 Christoph 提交于
According to the W3 spec[1] the value should use a 1-based index and not a 0-based index for the week number. [1]: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
-
- 10 11月, 2015 1 次提交
-
-
由 Christoph 提交于
According to the W3 spec[1] the value should use a 1-based index and not a 0-based index for the week number. [1]: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
-
- 09 11月, 2015 1 次提交
-
-
由 yuuji.yaginuma 提交于
-
- 08 11月, 2015 1 次提交
-
-
由 Grzegorz Witek 提交于
Now both `javascript_include_tag` and `stylesheet_tag` can accept `host` option to provide custom host for the asset
-
- 04 11月, 2015 1 次提交
-
-
由 Damien Burke 提交于
`link_to :back` creates a link to whatever was passed in via the referer header. If an attacker can alter the referer header, that would create a cross-site scripting vulnerability on every page that uses `link_to :back` This commit restricts the back URL to valid non-javascript URLs. https://github.com/rails/rails/issues/14444
-
- 30 10月, 2015 2 次提交
-
-
由 Sean Griffin 提交于
-
由 Lecky Lao 提交于
making selected value to accept Hash like the default option. E.g. selected: {day: params[:day].to_i, month: params[:month].to_id} Adds in test test_date_select_with_selected_in_hash and change log fixes typo in CHANGELOG
-
- 21 10月, 2015 1 次提交
-
-
由 Vasiliy Ermolovich 提交于
-
- 08 10月, 2015 2 次提交
-
-
由 Zach Alewel 提交于
-
由 Zach Alewel 提交于
-
- 06 10月, 2015 1 次提交
-
-
由 Abhishek Jain 提交于
-
- 25 9月, 2015 1 次提交
-
-
由 Mauro George 提交于
This will avoid a error be raised when the only input on the form is the `collection_radio_buttons`.
-
- 05 9月, 2015 1 次提交
-
-
由 Bernerd Schaefer 提交于
The `url_for` methods in `actionpack` and `actionview` now make a copy of the provided options before generating polymorphic paths or URLs. The bug in the previous behavior is most noticeable in a case like: url_options = [:new, :post, param: 'value'] if current_page?(url_options) css_class = "active" end link_to "New Post", url_options, class: css_class
-
- 28 8月, 2015 1 次提交
-
-
由 Vipul A M 提交于
- Extracted `DELIMITED_REGEX` to `delimited_regex` method and made use of user passed `options[:delimited_regex]` if available. Changed `DELIMITED_REGEX` to `DEFAULT)DELIMITED_REGEX` to signify what it means. - Added tests for number to delimited and number to currency in both actionview and activesupport. Changes Changes
-
- 12 8月, 2015 2 次提交
-
-
由 Justin Schiff 提交于
Prevents double submission by making disable_with the default. Default disable_with option will only be applied if user has not specified her/his own disable_with option, whether that is in the `data-disable-with` string form or the `:data => { :disable_with => "Saving..." }` hash form. disable_with will default to the value attribute. A configuration option was added to opt out of this functionality if the user so desires. `config.action_view.automatically_disable_submit_tag = false`
-
由 Mauricio Gomez Aguinaga 提交于
Sometimes you need a specific break sequence while using word wrap and as today the only option we have is "\n" and is hardcoded. With this change you will be able to specify any break sequence ("\r\n" for example) as an option. adding proper documentation for break_sequence in ActionView::Helpers::TextHelper.word_wrap adding some more documentation for word_wrap custom break sequence and making sure we use new hash syntax
-
- 27 7月, 2015 1 次提交
-
-
由 Kasper Timm Hansen 提交于
-
- 08 7月, 2015 1 次提交
-
-
由 Dov Murik 提交于
If a template includes `# Template Collection: ...` anywhere in its source, that name will be used as the cache name for the partial that is rendered for the collection. This allows users to enable collection caching even if the template doesn't start with `<% cache ... do %>`. Moreover, the `# Template Collection: ...` notation is recognized in all template types (and template types other than ERB can define a resource_cache_call_pattern method to allow the `cache ... do` pattern to be recognized too).
-
- 29 6月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
Adds the `virtual_path` option to `cache_fragment_name` so it can be provided when needed. That allows `cache_collection_render` to get the appropriate cache key with the digest generated based on the template and prevent collision with other templates that cache the same collection.
-
- 23 6月, 2015 1 次提交
-
-
由 Dov Murik 提交于
The regular expression which was used to detect partial templates that begin with a `<% cache ... do %>` call missed some cases. This commits attempts to improve the detection for some cases such as multi-line comments at the beginning of the template. The different templates are listed in two new unit test methods. Note that specially crafted Ruby code can still evade such `cache`-call detection: for example, a user might have its own method which itself calls the Rails `cache` helper. In such a case, the template's code doesn't start with a literal `cache` string and therefore will not be eligible for collection caching.
-
- 08 6月, 2015 1 次提交
-
-
由 Grey Baker 提交于
`Tags::Base#select_content_tag`. Previously, passing a falsey value to `include_blank` would be ignored if the field was required, and a blank line would still be inserted. The following will now raise instead of quietly failing: `select("post", "category", %w(a required field), { include_blank: false }, required: 'required')`
-
- 25 5月, 2015 1 次提交
-
-
由 Yoong Kang Lim 提交于
Previously, when content_for is flushed, the content was replaced directly by a new value in ActionView::OutputFlow#set. The problem is this new value passed to the method may not be an instance of ActiveSupport::SafeBuffer. This change forces the value to be set to a new instance of ActiveSupport::SafeBuffer.
-
- 16 5月, 2015 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 14 5月, 2015 1 次提交
-
-
由 Henrik Nygren 提交于
When one rendered a partial template without specifying an object or a collection (e.g. <%= render partial: 'partial_name' %>), Rails would make an object called :partial_name available in local_assigns. I don't think this was the intended behavior, since no local variable called 'partial_name' gets defined in the view.
-
- 05 5月, 2015 2 次提交
-
-
由 Bernard Potocki 提交于
-
由 Bernard Potocki 提交于
-
- 01 5月, 2015 1 次提交
-
-
由 Yves Senn 提交于
This reverts commit d459b001, reversing changes made to 4d4950fa.
😓 The block is not supposed to be passed to `link_to`. It's used for a customized behavior of the `condtion = false` case. The docs illustrate that like so: ``` <%= link_to_if(@current_user.nil?, "Login", { controller: "sessions", action: "new" }) do link_to(@current_user.login, { controller: "accounts", action: "show", id: @current_user }) end %> ```
-