Check your table and look type data for your date. change it tobe
string, if you dont want change it tobe string, in your view, change to
this code :
[options 1]
<% @registration.date =
@registration.date.strftime(''$d/%m/%Y'')
<%= text_field ''registration'', ''date''
%>
[options 2]
<%= text_field ''registration'', ''date'',
:value=>
@registration.date.strftime(''$d/%m/%Y'') %>
WHY data value in text_field is in ISO Format, because i am sure your
data type is Date or Time, so that your text_field will so date as like
type data in table not as string that you wish to be shown in Brazillian
format.
Sincerely,
Reinhart
http://teapoci.blogspot.com
--
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?hl=en
-~----------~----~----~----~------~----~------~--~---