Changeset 1279

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

A few for corrections to the examples -- thanks pd.

Files:

Legend:

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

    r1278 r1279  
    2929    # 
    3030    # You may also create a normal form using form_tag 
    31     #     <% form_tag({url(:controller => "foo", :action => "bar", :id => 1)} do %> 
     31    #     <% form_tag(:action => url(:controller => "foo", :action => "bar", :id => 1)) do %> 
    3232    #       <%= text_field :name => 'first_name', :label => 'First Name' %> 
    3333    #       <%= submit_button 'Create' %> 
     
    198198      # 
    199199      # ==== Example 
    200       #     <%= password_field :password, :label => "Password" %> 
     200      #     <%= password_field :name => :password, :label => "Password" %> 
    201201      #     # => <label for="password">Password</label><input type="password" name="password" id="password"/> 
    202202      def password_field(attrs = {}) 
     
    443443      # as the option content we could do something similar to this; 
    444444      # 
    445       #   <%= options_from_collection_for_select(@project.people, :text_method => "id", :value_method => "name") %> 
     445      #   <%= options_from_collection_for_select(@project.people, :value_method => "id", :text_method => "name") %> 
    446446      #   The iteration of the collection would create options in this manner; 
    447447      #   =>  <option value="#{person.id}">#{person.name}</option>