diff --git a/actionpack/CHANGELOG b/actionpack/CHANGELOG index 15394b2b98..12c903e8fe 100644 --- a/actionpack/CHANGELOG +++ b/actionpack/CHANGELOG @@ -1,6 +1,6 @@ *SVN* -* Deprecation: remove deprecated request, redirect, and dependency methods. Remove deprecated instance variables. Remove uses_component_template_root for toplevel components directory. Privatize deprecated render_partial and render_partial_collection view methods. [Jeremy Kemper] +* Deprecation: remove deprecated request, redirect, and dependency methods. Remove deprecated instance variables. Remove uses_component_template_root for toplevel components directory. Privatize deprecated render_partial and render_partial_collection view methods. Remove deprecated link_to_image and link_image_to helper methods. [Jeremy Kemper] * Consistent public/protected/private visibility for chained methods. #7813 [Dan Manges] diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb index dc9154dea5..a573ee1961 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -2,19 +2,19 @@ require 'action_view/helpers/javascript_helper' module ActionView module Helpers #:nodoc: - # Provides a set of methods for making easy links and getting urls that - # depend on the controller and action. This means that you can use the + # Provides a set of methods for making easy links and getting urls that + # depend on the controller and action. This means that you can use the # same format for links in the views that you do in the controller. module UrlHelper include JavaScriptHelper - - # Returns the URL for the set of +options+ provided. This takes the - # same options as url_for in action controller. For a list, see the - # documentation for ActionController::Base#url_for. Note that it'll - # set :only_path => true so you'll get the relative /controller/action + + # Returns the URL for the set of +options+ provided. This takes the + # same options as url_for in action controller. For a list, see the + # documentation for ActionController::Base#url_for. Note that it'll + # set :only_path => true so you'll get the relative /controller/action # instead of the fully qualified http://example.com/controller/action. - # - # When called from a view, url_for returns an HTML escaped url. If you + # + # When called from a view, url_for returns an HTML escaped url. If you # need an unescaped url, pass :escape => false in the +options+. def url_for(options = {}, *parameters_for_method_reference) if options.kind_of? Hash @@ -28,29 +28,29 @@ module ActionView escape ? html_escape(url) : url end - # Creates a link tag of the given +name+ using a URL created by the set - # of +options+. See the valid options in the documentation for - # ActionController::Base#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. If nil is passed as a name, the link itself will become + # Creates a link tag of the given +name+ using a URL created by the set + # of +options+. See the valid options in the documentation for + # ActionController::Base#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. If nil is passed as a name, the link itself will become # the name. # # The +html_options+ will accept a hash of html attributes for the link tag. - # It also accepts 3 modifiers that specialize the link behavior. + # It also accepts 3 modifiers that specialize the link behavior. # - # * :confirm => 'question?': This will add a JavaScript confirm - # prompt with the question specified. If the user accepts, the link is + # * :confirm => 'question?': This will add a JavaScript confirm + # prompt with the question specified. If the user accepts, the link is # processed normally, otherwise no action is taken. - # * :popup => true || array of window options: This will force the - # link to open in a popup window. By passing true, a default browser window - # will be opened with the URL. You can also specify an array of options + # * :popup => true || array of window options: This will force the + # link to open in a popup window. By passing true, a default browser window + # will be opened with the URL. You can also specify an array of options # that are passed-thru to JavaScripts window.open method. # * :method => symbol of HTTP verb: This modifier will dynamically - # create an HTML form and immediately submit the form for processing using + # create an HTML form and immediately submit the form for processing using # the HTTP verb specified. Useful for having links perform a POST operation # in dangerous actions like deleting a record (which search bots can follow # while spidering your site). Supported verbs are :post, :delete and :put. - # Note that if the user has JavaScript disabled, the request will fall back + # Note that if the user has JavaScript disabled, the request will fall back # to using GET. If you are relying on the POST behavior, your should check # for it in your controllers action by using the request objects methods # for post?, delete? or put?. @@ -88,7 +88,7 @@ module ActionView # the form submission and input element behavior using +html_options+. # This method accepts the :method and :confirm modifiers # described in the link_to documentation. If no :method modifier - # is given, it will default to performing a POST operation. You can also + # is given, it will default to performing a POST operation. You can also # disable the button by passing :disabled => true in +html_options+. # # button_to "New", :action => "new" @@ -133,52 +133,14 @@ module ActionView name ||= url html_options.merge!("type" => "submit", "value" => name) - - "