diff options
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 8 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/actionpack/lib/action_view/helpers/prototype_helper.rb b/actionpack/lib/action_view/helpers/prototype_helper.rb index 50feac5a0f..81938ac8e3 100644 --- a/actionpack/lib/action_view/helpers/prototype_helper.rb +++ b/actionpack/lib/action_view/helpers/prototype_helper.rb @@ -716,11 +716,11 @@ module ActionView # # Insert the rendered 'navigation' partial just before the DOM # # element with ID 'content'. # # Generates: new Insertion.Before("content", "-- Contents of 'navigation' partial --"); - # insert_html :before, 'content', :partial => 'navigation' + # page.insert_html :before, 'content', :partial => 'navigation' # # # Add a list item to the bottom of the <ul> with ID 'list'. # # Generates: new Insertion.Bottom("list", "<li>Last item</li>"); - # insert_html :bottom, 'list', '<li>Last item</li>' + # page.insert_html :bottom, 'list', '<li>Last item</li>' # def insert_html(position, id, *options_for_render) insertion = position.to_s.camelize @@ -735,7 +735,7 @@ module ActionView # # Replace the HTML of the DOM element having ID 'person-45' with the # # 'person' partial for the appropriate object. # # Generates: Element.update("person-45", "-- Contents of 'person' partial --"); - # replace_html 'person-45', :partial => 'person', :object => @person + # page.replace_html 'person-45', :partial => 'person', :object => @person # def replace_html(id, *options_for_render) call 'Element.update', id, render(*options_for_render) @@ -749,7 +749,7 @@ module ActionView # # # Replace the DOM element having ID 'person-45' with the # # 'person' partial for the appropriate object. - # replace 'person-45', :partial => 'person', :object => @person + # page.replace '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+ without resorting to diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 680e078404..4a951f2c88 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -86,7 +86,7 @@ module ActionView # of +options+. See the valid options in the documentation for # url_for. It's also possible to pass a string instead # of an options hash to get a link tag that uses the value of the string as the - # href for the link, or use +:back+ to link to the referrer - a JavaScript back + # href for the link, or use <tt>:back</tt> to link to the referrer - a JavaScript back # link will be used in place of a referrer if none exists. If nil is passed as # a name, the link itself will become the name. # |