Changeset 1278

Show
Ignore:
Timestamp:
01/10/08 18:52:20 (9 months ago)
Author:
luke.sutt..@gmail.com
Message:

Fix up a few of the examples in the comments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/merb_helpers/lib/merb_helpers/form_helpers.rb

    r1223 r1278  
    7474      # Generates a form tag, which accepts a block that is not directly based on resource attributes 
    7575      #  
    76       #     <% form_tag({url(:controller => "foo", :action => "bar", :id => 1)} do %> 
     76      #     <% form_tag(:action => url(:controller => "foo", :action => "bar", :id => 1)) do %> 
    7777      #       <%= text_field :name => 'first_name', :label => 'First Name' %> 
    7878      #       <%= submit_button 'Create' %> 
     
    176176      # 
    177177      # ==== Example 
    178       #     <%= text_field :fav_color, :label => 'Your Favorite Color' %> 
     178      #     <%= text_field :name => :fav_color, :label => 'Your Favorite Color' %> 
    179179      #     # => <label for="fav_color">Your Favorite Color</label><input type="text" name="fav_color" id="fav_color"/> 
    180180      def text_field(attrs = {})