Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
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>
Something went wrong with that request. Please try again.