Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Aug 1, 2012
  1. @rafaelfranca

    Revert "Deprecate `:confirm` in favor of `:data => { :confirm => 'Tex…

    rafaelfranca authored
    …t' }` option"
    
    Revert "Deprecate `:disable_with` in favor of `'data-disable-with'` option for `button_to` and `submit_tag` helpers."
    
    This reverts commit fc092a9.
    This reverts commit e9051e2.
    This reverts commit d47d6e7.
    This reverts commit 21141e7.
Commits on Jun 5, 2012
  1. @carlosgaldino

    Deprecate `:confirm` in favor of `:data => { :confirm => 'Text' }` op…

    carlosgaldino authored
    …tion
    
    This deprecation applies to:
    `button_to`
    `button_tag`
    `image_submit_tag`
    `link_to`
    `submit_tag`
    
    As :confirm is an UI specific option is better to use the data attributes,
    teaching users about unobtrusive JavaScript and how Rails works with it.
Commits on May 14, 2012
  1. Deprecate `:disable_with` for `button_tag` too

    Carlos Galdino + Rafael Mendonça França authored
  2. Deprecate `:disable_with` in favor of `'data-disable-with'` option fo…

    Carlos Galdino + Rafael Mendonça França authored
    …r `button_to` and `submit_tag` helpers.
Commits on Mar 28, 2012
  1. @drogus

    Cover one more case in auth_token and remote forms

    drogus authored
    If embedding auth_token in remote forms is off and we
    pass a value for auth_token it should respect it.
  2. @drogus

    Added config.action_view.embed_authenticity_token_in_remote_forms

    drogus authored
    There is a regression introduced in 16ee611, which breaks
    remote forms that should also work without javascript. This commit
    introduces config option that allows to configure this behavior
    defaulting to the old behavior (ie. include authenticity token
    in remote forms by default)
Commits on Mar 14, 2012
  1. @dhh

    Allow you to force the authenticity_token to be rendered even on remo…

    dhh authored
    …te forms if you pass true
  2. @dhh

    Do not include the authenticity token in forms where remote: true as …

    dhh authored
    …ajax forms use the meta-tag value
Commits on Dec 31, 2011
  1. @fuzzyalej @vijaydev
Commits on Dec 29, 2011
  1. @vijaydev

    revise some doc changes

    vijaydev authored
  2. @fuzzyalej @vijaydev

    Fixed formatting of code examples in form_tag_helper.rb

    fuzzyalej authored vijaydev committed
Commits on Oct 28, 2011
  1. @pwim
Commits on Sep 4, 2011
  1. if ... nil? is more expensive than unless

    Milan Dobrota authored
Commits on Aug 25, 2011
  1. @spastorino

    Tiny refactor

    spastorino authored
  2. @spastorino

    Merge pull request #2491 from waynn/fix_symbol

    spastorino authored
    fix destructive stringify_keys for label_tag
Commits on Aug 11, 2011
  1. @waynn
  2. @grzuy

    Remove 'parameters_for_url' parameter from 'form_tag' method signature

    Gonzalo Rodriguez and Leonardo Capillera authored grzuy committed
    If you use that parameter it will end calling to url_for with two
    arguments, which fails because url_for expects only one
Commits on Aug 4, 2011
  1. @waynn

    fix stringify_keys destructive behavior for most FormTagHelper functions

    waynn authored
    add four new tests to verify that the other three methods that called stringify_keys! are fixed. verified that the tests break in master without the code patch. Closes #2355
Commits on Jul 30, 2011
  1. @waynn
Commits on Jul 24, 2011
  1. @oem

    Missed a few instances of British English spelling in the last commit

    oem authored
    oh and obviously I meant according to Webster, not Weber
  2. @oem

    Changed a few instances of of words in the API docs written in Britis…

    oem authored
    …h English to
    
    American English(according to Weber)
Commits on Jun 11, 2011
  1. @josevalim
  2. @dlee
  3. @dlee
  4. @dlee

    There are no snowmen here

    dlee authored
Commits on May 23, 2011
  1. @smartinez87
Commits on May 8, 2011
  1. @jsnrth
Commits on May 3, 2011
  1. @danielvlopes
Commits on Mar 5, 2011
  1. @rtlechow @fxn

    Action Pack typos.

    rtlechow authored fxn committed
Commits on Feb 12, 2011
  1. @tomstuart

    Add block support to button_tag helper

    tomstuart authored Santiago Pastorino and Emilio Tagua committed
    As per the HTML 4.01 spec:
    
      Buttons created with the BUTTON element function just like buttons
      created with the INPUT element, but they offer richer rendering
      possibilities: the BUTTON element may have content. For example, a
      BUTTON element that contains an image functions like and may resemble
      an INPUT element whose type is set to "image", but the BUTTON element
      type allows content.
    
    Since rich content is the main purpose of the <button> element, it makes
    sense for the button_tag helper to accept a block.
    
    http://www.w3.org/TR/html401/interact/forms.html#edef-BUTTON
    http://dev.w3.org/html5/spec/the-button-element.html#the-button-element
    
    Signed-off-by: Santiago Pastorino and Emilio Tagua <santiago+emilioe@wyeworks.com>
  2. @tomstuart

    Make type="submit" the default for button_tag helper

    tomstuart authored Santiago Pastorino and Emilio Tagua committed
    "submit" is the default value of the <button> element's type attribute
    according to the HTML 4.01 and the HTML5 draft specs, so if button_tag
    is going to have a default, type="submit" is a more sensible choice than
    type="button".
    
    http://www.w3.org/TR/html401/interact/forms.html#adef-type-BUTTON
    http://dev.w3.org/html5/spec/the-button-element.html#attr-button-type
    
    Signed-off-by: Santiago Pastorino and Emilio Tagua <santiago+emilioe@wyeworks.com>
Commits on Jan 13, 2011
  1. @spastorino
Commits on Jan 9, 2011
  1. @jeremy

    authenticity_token option for form_tag [#2988 state:resolved]

    Jakub Kuźma authored jeremy committed
  2. @rizwanreza @jeremy

    HTML5 button_tag helper

    rizwanreza authored jeremy committed
    This tag is similar in nature to submit_tag, but allows more control.
    It also doesn't submit if submit type isn't used, allowing JavaScript to
    control the flow where required.
    
    For more information: http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-element.html#the-button-element
Commits on Dec 15, 2010
  1. @asanghi
Something went wrong with that request. Please try again.