1. 01 2月, 2014 2 次提交
  2. 27 1月, 2014 1 次提交
  3. 10 1月, 2014 2 次提交
    • J
      Avoid scanning multiple render calls as a single match. · ccbba3ff
      João Britto 提交于
      Each chunk of text coming after `render` is now handled individually as a possible list of arguments.
      ccbba3ff
    • J
      Improve ERB dependency detection. · c2afa055
      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`.
      c2afa055
  4. 07 1月, 2014 1 次提交
  5. 06 1月, 2014 2 次提交
    • W
      Require actionview/version · a5d92e6a
      Washington Luiz 提交于
      just like all the other modules do require their version file
      a5d92e6a
    • G
      Switched to use `display:none` in extra_tags_for_form method. · 7a085dac
      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
      7a085dac
  6. 05 1月, 2014 1 次提交
  7. 04 1月, 2014 4 次提交
  8. 02 1月, 2014 2 次提交
  9. 18 12月, 2013 3 次提交
  10. 12 12月, 2013 1 次提交
  11. 11 12月, 2013 1 次提交
  12. 07 12月, 2013 1 次提交
  13. 06 12月, 2013 2 次提交
  14. 05 12月, 2013 3 次提交
  15. 04 12月, 2013 5 次提交
    • M
    • R
      Fix documentation of number_to_currency helper · d261c5cc
      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
      d261c5cc
    • Ł
      Action Pack Variants · 2d3a6a0c
      Ł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.
      2d3a6a0c
    • A
      optimize string literals in erb templates · 4d648819
      Aaron Patterson 提交于
      4d648819
    • R
      Remove the escaping skip · da633f81
      Rafael Mendonça França 提交于
      We are generating safe strings in the paragraph, so we can escape the
      tags
      da633f81
  16. 03 12月, 2013 7 次提交
  17. 02 12月, 2013 2 次提交