diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 13:09:44 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-03-22 13:09:44 +0000 |
commit | daaa5251c9634ec18d720adc0e5daee8bc4d9a13 (patch) | |
tree | 0ab31b3d47c33dde9e4af9a714194a166777f10d /actionpack/lib | |
parent | 6ad1b895f4a7a113ad372ce485ac20c762cc3c2c (diff) | |
download | rails-daaa5251c9634ec18d720adc0e5daee8bc4d9a13.tar.gz rails-daaa5251c9634ec18d720adc0e5daee8bc4d9a13.tar.bz2 rails-daaa5251c9634ec18d720adc0e5daee8bc4d9a13.zip |
Fixed documentation and prepared for 0.11.0 release
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib')
4 files changed, 4 insertions, 26 deletions
diff --git a/actionpack/lib/action_controller/routing.rb b/actionpack/lib/action_controller/routing.rb index 0d4143fa87..6d5f108484 100644 --- a/actionpack/lib/action_controller/routing.rb +++ b/actionpack/lib/action_controller/routing.rb @@ -324,7 +324,7 @@ module ActionController end end - def self.extract_parameter_value(parameter) + def self.extract_parameter_value(parameter) #:nodoc: value = (parameter.respond_to?(:to_param) ? parameter.to_param : parameter).to_s CGI.escape(value) end diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb index 079ec736a1..d5630bcdfe 100644 --- a/actionpack/lib/action_view/helpers/javascript_helper.rb +++ b/actionpack/lib/action_view/helpers/javascript_helper.rb @@ -7,9 +7,9 @@ module ActionView # actions in your controllers without reloading the page, but still update certain parts of it using injections into the # DOM. The common use case is having a form that adds a new element to a list without reloading the page. # - # To be able to use the Javascript helpers, you must either call <%= define_javascript_functions %> (which returns all + # To be able to use the Javascript helpers, you must either call <tt><%= define_javascript_functions %></tt> (which returns all # the Javascript support functions in a <script> block) or reference the Javascript library using - # <%= javascript_include_tag "prototype" %> (which looks for the library in /javascripts/prototype.js). The latter is + # <tt><%= javascript_include_tag "prototype" %></tt> (which looks for the library in /javascripts/prototype.js). The latter is # recommended as the browser can then cache the library instead of fetching all the functions anew on every request. # # If you're the visual type, there's an Ajax movie[http://www.rubyonrails.com/media/video/rails-ajax.mov] demonstrating diff --git a/actionpack/lib/action_view/helpers/pagination_helper.rb b/actionpack/lib/action_view/helpers/pagination_helper.rb index f34359583b..06feb274fb 100644 --- a/actionpack/lib/action_view/helpers/pagination_helper.rb +++ b/actionpack/lib/action_view/helpers/pagination_helper.rb @@ -7,8 +7,6 @@ module ActionView # <%= link_to "Previous page", { :page => paginator.current.previous } if paginator.current.previous %> # # <%= link_to "Next page", { :page => paginator.current.next } of paginator.current.next =%> - # - # module PaginationHelper unless const_defined?(:DEFAULT_OPTIONS) DEFAULT_OPTIONS = { diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index 9156e6325a..4aaab2d3a5 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -33,27 +33,7 @@ module ActionView end end - # Creates a link tag on the image residing at the +src+ using an URL created by the set of +options+. This takes the same options - # as url_for. For a list, see the url_for documentation in link:classes/ActionController/Base.html#M000079. - # It's also possible to pass a string instead of an options hash to get a link tag that just points without consideration. - # The <tt>html_options</tt> works jointly for the image and ahref tag by letting the following special values enter the options on - # the image and the rest goes to the ahref: - # - # * <tt>:alt</tt> - If no alt text is given, the file name part of the +src+ is used (capitalized and without the extension) - # * <tt>:size</tt> - Supplied as "XxY", so "30x45" becomes width="30" and height="45" - # * <tt>:border</tt> - Draws a border around the link - # * <tt>:align</tt> - Sets the alignment, no special features - # - # The +src+ can be supplied as a... - # * full path, like "/my_images/image.gif" - # * file name, like "rss.gif", that gets expanded to "/images/rss.gif" - # * file name without extension, like "logo", that gets expanded to "/images/logo.png" - # - # Examples: - # link_image_to "logo", { :controller => "home" }, :alt => "Homepage", :size => "45x80" - # link_image_to "delete", { :action => "destroy" }, :size => "10x10", :confirm => "Are you sure?", "class" => "admin" - # - # NOTE: This tag is deprecated. Combine the link_to and image_tag yourself instead, like: + # This tag is deprecated. Combine the link_to and AssetTagHelper::image_tag yourself instead, like: # link_to(image_tag("rss", :size => "30x45", :border => 0), "http://www.example.com") def link_image_to(src, options = {}, html_options = {}, *parameters_for_method_reference) image_options = { "src" => src.include?("/") ? src : "/images/#{src}" } |