public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
mephisto / vendor / plugins / labeled_form_helper
name age message
..
file README Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
file Rakefile Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
file init.rb Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
file install.rb Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
directory lib/ Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
directory test/ Sat Apr 01 17:26:31 -0800 2006 freeze plugins [technoweenie]
README
LabeledFormHelper
=================

The LabeledFormHelper gives you helpers for label tags:

  <%= label_tag('post_title', 'Title') %>
  <label for="post_title">Title</label>

  <%= label_for('post', 'category') %>
  <label for="post_category">Category</label>

  <% form_for :person, @person, :url => { :action => "update" } do |f| %>
    First name: <%= f.text_field :first_name %>
  <% end %>
  
  <form action="update">
    <p><label for="person_first_name">First Name</label><br /><input type="text" id="person_first_name" 
    name="person[first_name]" /></p>
  </form>