Set a title attribute for the text field inside rails form

Hi
I am trying to set title attribute for the text filed inside a form
using rails.
I tried
<%= f.text_field :email , :class => “autoclear”,:title => “title” %></
p>
but it did not work
I want it to produce this HTML


On May 21, 4:56Â pm, Mohammed A. [email protected] wrote:

Hi
I am trying to set title attribute for the text filed inside a form
using rails.
I tried
<%= f.text_field :email  , :class => “autoclear”,:title => “title” %></
p>
but it did not work
I want it to produce this HTML

What did it produce ?

Fred

it ignores the :title for some reason

On May 21, 8:12Â pm, Frederick C. [email protected]

You’ve got something mucking with your output. Maybe a plugin or a form
builder? On a clean Rails 2.3.5 app with the following view…

<% @foo = Foo.new %>
<% form_for @foo do |f| %>
<%= f.text_field :name, :title => ‘my title’ %>
<% end %>

… gives me this…

-philip