- 19 2月, 2014 1 次提交
-
-
由 Prem Sichanugrist 提交于
This test were assuming that the list of render options will always be the same. Fixing that so this doesn't break when we add/remove render option in the future.
-
- 15 2月, 2014 1 次提交
-
-
由 Xavier Noria 提交于
-
- 13 2月, 2014 1 次提交
-
-
由 Iain Beeston 提交于
automatically call @foo.to_partial_path Calling `render @foo` allows local variables but not options to be passed to the partial renderer. The correct way to render an object AND pass options to the partial renderer is to pass the object in the `:partial` parameter. However, there were previously no tests for this behaviour (in `render_helper_test.rb` at least).
-
- 03 2月, 2014 1 次提交
-
-
由 Attila Domokos 提交于
I did not see in the docs that `button_to` supports not only URLs but paths as well. I documented this functionality with a unit tests and added an example to the docs as well.
-
- 27 1月, 2014 1 次提交
-
-
由 Kassio Borges 提交于
Add a config to setup whether raise exception for missing translation or not.
-
- 14 1月, 2014 1 次提交
-
-
由 Waynn Lue 提交于
-
- 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`.
-
- 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
-
- 24 12月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 18 12月, 2013 1 次提交
-
-
由 Kuldeep Aggarwal 提交于
-
- 12 12月, 2013 2 次提交
- 07 12月, 2013 1 次提交
-
-
由 Kristian Freeman 提交于
with a set of comma-separated objects.
-
- 06 12月, 2013 1 次提交
-
-
由 Andriel Nuernberg 提交于
-
- 05 12月, 2013 4 次提交
-
-
由 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
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
-
由 Godfrey Chan 提交于
Expanded test coverage for html_escape and json_escape
-
- 04 12月, 2013 2 次提交
-
-
由 Mario Visic 提交于
-
由 Ł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.
-
- 03 12月, 2013 2 次提交
-
-
由 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 提交于
Previously the unit values were trusted leading to potential XSS vulnerabilities. Fixes: CVE-2013-6415
-
- 02 12月, 2013 1 次提交
-
-
由 Yves Senn 提交于
Missing partial folder/_partial instead of folder/partial. Closes #13002.
-
- 27 11月, 2013 2 次提交
-
-
由 Akira Matsuda 提交于
-
由 Akira Matsuda 提交于
-
- 16 11月, 2013 1 次提交
-
-
由 Shimpei Makimoto 提交于
-
- 09 11月, 2013 1 次提交
-
-
由 pseidemann 提交于
-
- 01 11月, 2013 1 次提交
-
-
由 Arun Agrawal 提交于
Same as 4d4ff531
-
- 30 10月, 2013 1 次提交
-
-
由 Carsten Zimmermann 提交于
Rails 3.2 API allowed arbitrary input for cdata_section; this change re-introduces the old behaviour.
-
- 17 10月, 2013 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 15 10月, 2013 1 次提交
-
-
由 Brad Murray 提交于
If config.action_view.cache_template_loading = false, most likely in a development configuration if config.cache_classes = false & config.action_controller.perform_caching = true. config.action_view.cache_template_loading defaults to the value of config.cache_classes
-
- 25 9月, 2013 1 次提交
-
-
由 Angel N. Sciortino 提交于
-
- 23 9月, 2013 3 次提交
-
-
由 Bogdan Gusiev 提交于
-
由 Bogdan Gusiev 提交于
Example: = select(report, "campaign_ids") do - available_campaigns.each do |c| %option{:data => {:tags => c.tags.to_json}, :value => c.id}= c.name
-
由 Vasiliy Ermolovich 提交于
-
- 19 9月, 2013 2 次提交
-
-
由 Daniel Schierbeck 提交于
Since the lookup details will influence which template is resolved, they need to be included in the cache key -- otherwise two different templates may erroneously share the same digest value.
-
由 Andy Waite 提交于
The parameters are rendered as hidden form fields within the generated form. This is useful for when a record has multiple buttons associated with it, each of which target the same controller method, but which need to submit different attributes.
-
- 18 9月, 2013 1 次提交
-
-
由 Santiago Pastorino 提交于
AS does the following inside Time.find_zone! ... `ActiveSupport::TimeZone[time_zone] || TZInfo::Timezone.get(time_zone)` and given that the test is stubbing AS::TZ[] we don't need the removed code.
-
- 13 9月, 2013 1 次提交
-
-
由 Waynn Lue 提交于
I accidentally pushed this change to docrails before realizing that it's technically a code change, so I'm opening this pull request (and rolling back my change to docrails).
-