I''m using the _form.rhtml partial for both the new.rhtml and edit.rhtml views like this: <% if @product.cost %> <%= text_field ''product'', ''cost'', :size => 5 %> <% else %> <%= text_field ''product'', ''cost'', :size => 5, :value => 0 %> <% end %> I couldn''t find a :defaultvalue or similar hash parameter and not sure how I''d add an "if not nil" statement to the form helper. If there''s proper way to do this I''d be interested to learn. Thanks, DAN -- 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---