Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 5

Show
Ignore:
Timestamp:
11/24/04 01:15:16 (4 years ago)
Author:
david
Message:

Allow form_tag with no arguments (resulting in a form posting to current action) - Patch #236

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/CHANGELOG

    r4 r5  
    11*CVS* 
     2 
     3* Added the choice to call form_tag with no arguments (resulting in a form posting to current action) [bitsweat] 
    24 
    35* Upgraded to Builder 1.2.1 
  • trunk/actionpack/lib/action_view/helpers/tag_helper.rb

    r4 r5  
    2424      # Starts a form tag that points the action to an url configured with <tt>url_for_options</tt> just like  
    2525      # ActionController::Base#url_for. 
    26       def form_tag(url_for_options, options = {}, *parameters_for_url) 
     26      def form_tag(url_for_options = {}, options = {}, *parameters_for_url) 
    2727        html_options = { "method" => "POST" }.merge(options) 
    2828