I can''t find a way to do this in any docs I''ve looked at. Please help.. Bob -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 21 Aug, 03:48, Bob Smith <bsm...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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> Bob-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 /> -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
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 -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 25, 7:01 am, Bob Smith <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> 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> > <% form_for @household, :builder => TaggedBuilder, :url => > household_path(@household), } do |household| %> > > Bob > -- > Posted viahttp://www.ruby-forum.com/.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Sep 25, 3:49 am, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Sep 25, 7:01 am, Bob Smith <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > > I don''t have anylabellines 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 > > > > > <% 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 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.