Any way to have a text_area without a label??

I can't find a way to do this in any docs I've looked at. Please
help..

Bob

I can't find a way to do this in any docs I've looked at. Please
help..

I'm not sure what you're asking - there will only be a label if you
put one there. Can you illustrate your question with an example?

Fred

Exqueeze me?

I'm not sure what your starting point is, but if you begin with
something like this (from a simple scaffolded view):

<% form_for(@team) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

Just remove the line <%= f.label :description %><br />

Ar Chron wrote:

Exqueeze me?

I'm not sure what your starting point is, but if you begin with
something like this (from a simple scaffolded view):

<% form_for(@team) do |f| %>
  <%= f.error_messages %>
  <p>
    <%= f.label :name %><br />
    <%= f.text_field :name %>
  </p>
  <p>
    <%= f.label :description %><br />
    <%= f.text_area :description %>
  </p>
  <p>
    <%= f.submit 'Update' %>
  </p>
<% end %>

Just remove the line <%= f.label :description %><br />

I don't have any label lines in my code, just:

<%= household.text_area(:notes, :size => "40x8", :class => "notes" ) %>

the only thing I can see that may affect this is that I'm using
TaggedHelper. as in:

<% form_for @household, :builder => TaggedBuilder, :url =>
household_path(@household), } do |household| %>

Bob

I don't have any label lines in my code, just:

<%= household.text_area(:notes, :size => "40x8", :class => "notes" ) %>

the only thing I can see that may affect this is that I'm using
TaggedHelper. as in:

That could easily be it. Did you try not using that builder ?

Fred

That fixes the label problem, but that helper is more important than
the labels. It turns fields that fail validation red and shows the
error
if you move the mouse over the field name.

                      Bob