diff options
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_controller/routing.rb | 4 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/prototype_helper.rb | 8 | ||||
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 3cb8b7b93d..fa5a347db9 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -47,7 +47,7 @@ module ActionController # :controller maps to your controller name # :action maps to an action with your controllers # - # Other names simply map to a parameter as in the case of +:id+. + # Other names simply map to a parameter as in the case of <tt>:id</tt>. # # == Route priority # @@ -82,7 +82,7 @@ module ActionController # This sets up +blog+ as the default controller if no other is specified. # This means visiting '/' would invoke the blog controller. # - # More formally, you can define defaults in a route with the +:defaults+ key. + # More formally, you can define defaults in a route with the <tt>:defaults</tt> key. # # map.connect ':controller/:action/:id', :action => 'show', :defaults => { :page => 'Dashboard' } # 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. # |