mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
replace_element was renamed replace [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3590 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
022a8fc681
commit
5f2292ce39
3 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@
|
|||
page.select('p.welcome b').first # => $$('p.welcome b').first();
|
||||
page.select('p.welcome b').first.hide # => $$('p.welcome b').first().hide();
|
||||
|
||||
* Add JavaScriptGenerator#replace_element for replacing an element's "outer HTML". #3246 [tom@craz8.com, Sam Stephenson]
|
||||
* Add JavaScriptGenerator#replace for replacing an element's "outer HTML". #3246 [tom@craz8.com, Sam Stephenson]
|
||||
|
||||
* Remove over-engineered form_for code for a leaner implementation. [Nicholas Seckar]
|
||||
|
||||
|
|
|
@ -488,7 +488,7 @@ module ActionView
|
|||
# replace_html 'person-45', :partial => 'person', :object => @person
|
||||
#
|
||||
# This allows the same partial that is used for the +insert_html+ to
|
||||
# be also used for the input to +replace_element+ without resorting to
|
||||
# be also used for the input to +replace+ without resorting to
|
||||
# the use of wrapper elements.
|
||||
#
|
||||
# Examples:
|
||||
|
|
|
@ -173,7 +173,7 @@ class JavaScriptGeneratorTest < Test::Unit::TestCase
|
|||
|
||||
def test_replace_element_with_string
|
||||
assert_equal 'Element.replace("element", "<div id=\"element\"><p>This is a test</p></div>");',
|
||||
@generator.replace_element('element', '<div id="element"><p>This is a test</p></div>')
|
||||
@generator.replace('element', '<div id="element"><p>This is a test</p></div>')
|
||||
end
|
||||
|
||||
def test_remove
|
||||
|
|
Loading…
Reference in a new issue