Changeset 1279
- Timestamp:
- 01/10/08 19:08:52 (11 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/merb_helpers/lib/merb_helpers/form_helpers.rb
r1278 r1279 29 29 # 30 30 # 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 %> 32 32 # <%= text_field :name => 'first_name', :label => 'First Name' %> 33 33 # <%= submit_button 'Create' %> … … 198 198 # 199 199 # ==== Example 200 # <%= password_field : password, :label => "Password" %>200 # <%= password_field :name => :password, :label => "Password" %> 201 201 # # => <label for="password">Password</label><input type="password" name="password" id="password"/> 202 202 def password_field(attrs = {}) … … 443 443 # as the option content we could do something similar to this; 444 444 # 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") %> 446 446 # The iteration of the collection would create options in this manner; 447 447 # => <option value="#{person.id}">#{person.name}</option>
