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…
Bob
On 21 Aug, 03:48, Bob S. [email protected] wrote:
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 %>
<%= f.label :name %>
<%= f.text_field :name %>
<%= f.label :description %>
<%= f.text_area :description %>
<%= f.submit 'Update' %>
<% end %>Just remove the line <%= f.label :description %>
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 %><%= f.label :name %>
<%= f.text_field :name %><%= f.label :description %>
<%= f.text_area :description %><%= f.submit 'Update' %>
<% end %>Just remove the line <%= f.label :description %>
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
On Sep 25, 7:01 am, Bob S. [email protected] wrote:
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
On Sep 25, 3:49 am, Frederick C. [email protected]
wrote:
Fred
<% form_for @household, :builder => TaggedBuilder, :url =>
household_path(@household), } do |household| %>Bob
Posted viahttp://www.ruby-forum.com/.
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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs