- 27 1月, 2014 1 次提交
-
-
由 Kassio Borges 提交于
Add a config to setup whether raise exception for missing translation or not.
-
- 10 1月, 2014 2 次提交
-
-
由 João Britto 提交于
Each chunk of text coming after `render` is now handled individually as a possible list of arguments.
-
由 João Britto 提交于
The current implementation can't handle some special cases of oddly-formatted Ruby. Now we are able to detect them: * Multi-line arguments on the `render` call * Strings containing quotes, e.g. `"something's wrong"` * Multiple kinds of identifiers - instance variables, class variables and globals * Method chains as arguments for the `render` call Also, this fix reduces the rate of "false positives" which showed up when we had calls/access to identifiers containing `render`, like `surrender` and `rendering`.
-
- 07 1月, 2014 1 次提交
-
-
由 Adrien 提交于
image_tag only supports :alt and :size as additional keys, not three.
-
- 06 1月, 2014 1 次提交
-
-
由 Gaelian Ditchburn 提交于
The use of `display:inline` with the content_tag call in the extra_tags_for_form method potentially causes display issues with some browsers, namely Internet Explorer. IE's behaviour of not collapsing the line height on divs with ostensibly no content means that the automatically added div containing the hidden authenticity_token, utf8 and _method form input tags may interfere with other visible form elements in certain circumstances. The use of `display:none` rather than `display:inline` fixes this problem. Fixes #6403
-
- 05 1月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 04 1月, 2014 4 次提交
-
-
由 Konstantin Wlasow 提交于
-
由 T.J. Schuck 提交于
-
由 Rafael Mendonça França 提交于
-
由 Prathamesh Sonpatki 提交于
- While editing an existing record, end_year is equal to current selected year plus 5 by default. - While editing an existing record, start_year is equal to current selected year value minus 5 by default. - Fixes #13552 Acked-by: NPrathamesh Sonpatki <csonpatki@gmail.com> Acked-by: NPrathamesh Sonpatki <csonpatki@gmail.com>
-
- 02 1月, 2014 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 18 12月, 2013 3 次提交
-
-
由 abhishek 提交于
-
由 Kuldeep Aggarwal 提交于
-
由 David Heinemeier Hansson 提交于
-
- 12 12月, 2013 1 次提交
-
-
由 Aayush khandelwal 提交于
-
- 11 12月, 2013 1 次提交
-
-
由 Semyon Perepelitsa 提交于
-
- 07 12月, 2013 1 次提交
-
-
由 Kristian Freeman 提交于
with a set of comma-separated objects.
-
- 06 12月, 2013 2 次提交
-
-
由 Andriel Nuernberg 提交于
-
由 Rafael Mendonça França 提交于
This will fix the regression added on b068e20b. See tests added at ff08d31e to a better understanding about the problem
-
- 05 12月, 2013 3 次提交
-
-
由 Shota Fukumori (sora_h) 提交于
Before ec16ba75, ActionView::Helpers::TranslationHelper#translate has raised errors with specifying options[:raise] to true. This should work by this fix: begin t(:"translations.missing", raise: true) rescue I18n::MissingTranslationData p :hello! end
-
由 Łukasz Strzałkowski 提交于
No need to do this in railtie as AM depends on AV either way
-
由 Łukasz Strzałkowski 提交于
-
- 04 12月, 2013 5 次提交
-
-
由 Mario Visic 提交于
-
由 Rafael Mendonça França 提交于
Now users have to explicit mark the unit as safe if they trust it. Closes #13161 Conflicts: actionpack/lib/action_view/helpers/number_helper.rb actionpack/test/template/number_helper_i18n_test.rb
-
由 Łukasz Strzałkowski 提交于
By default, variants in the templates will be picked up if a variant is set and there's a match. The format will be: app/views/projects/show.html.erb app/views/projects/show.html+tablet.erb app/views/projects/show.html+phone.erb If request.variant = :tablet is set, we'll automatically be rendering the html+tablet template. In the controller, we can also tailer to the variants with this syntax: class ProjectsController < ActionController::Base def show respond_to do |format| format.html do |html| @stars = @project.stars html.tablet { @notifications = @project.notifications } html.phone { @chat_heads = @project.chat_heads } end format.js format.atom end end end The variant itself is nil by default, but can be set in before filters, like so: class ApplicationController < ActionController::Base before_action do if request.user_agent =~ /iPad/ request.variant = :tablet end end end This is modeled loosely on custom mime types, but it's specifically not intended to be used together. If you're going to make a custom mime type, you don't need a variant. Variants are for variations on a single mime types.
-
由 Aaron Patterson 提交于
-
由 Rafael Mendonça França 提交于
We are generating safe strings in the paragraph, so we can escape the tags
-
- 03 12月, 2013 7 次提交
-
-
由 Lauro Caetano 提交于
-
由 Michael Koziarski 提交于
i18n doesn't depend on active support which means it can't use our html_safe code to do its escaping when generating the spans. Rather than try to sanitize the output from i18n, just revert to our old behaviour of rescuing the error and constructing the tag ourselves. Fixes: CVE-2013-4491
-
由 Michael Koziarski 提交于
The previous behavior equated the sanitize option for simple_format with the escape option of content_tag, however these are two distinct concepts. This fixes CVE-2013-6416 Conflicts: actionview/lib/action_view/helpers/text_helper.rb
-
由 Michael Koziarski 提交于
Previously the unit values were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2013-6415
-
由 Aaron Patterson 提交于
CVE-2013-6414
-
由 Genadi Samokovarov 提交于
-
由 Rafael Mendonça França 提交于
-
- 02 12月, 2013 2 次提交
-
-
由 Akshay Vishnoi 提交于
-
由 Yves Senn 提交于
Missing partial folder/_partial instead of folder/partial. Closes #13002.
-
- 27 11月, 2013 2 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
由 Akira Matsuda 提交于
-
- 25 11月, 2013 2 次提交
-
-
由 Carlos Antonio da Silva 提交于
This reverts commit f4a5a9ea, reversing changes made to 7ccb4821. Reason: The logic is different, the first call to #option_value_selected? is for the :selected option (the argument is the "selected" variable), the second call is for the :disabled option (the argument is the "disabled" variable).
-
由 Akshay Vishnoi 提交于
-