Changeset 1278
- Timestamp:
- 01/10/08 18:52:20 (9 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/merb_helpers/lib/merb_helpers/form_helpers.rb
r1223 r1278 74 74 # Generates a form tag, which accepts a block that is not directly based on resource attributes 75 75 # 76 # <% form_tag( {url(:controller => "foo", :action => "bar", :id => 1)}do %>76 # <% form_tag(:action => url(:controller => "foo", :action => "bar", :id => 1)) do %> 77 77 # <%= text_field :name => 'first_name', :label => 'First Name' %> 78 78 # <%= submit_button 'Create' %> … … 176 176 # 177 177 # ==== Example 178 # <%= text_field : fav_color, :label => 'Your Favorite Color' %>178 # <%= text_field :name => :fav_color, :label => 'Your Favorite Color' %> 179 179 # # => <label for="fav_color">Your Favorite Color</label><input type="text" name="fav_color" id="fav_color"/> 180 180 def text_field(attrs = {})
