Notes posted by RafaelPereaRSS feed
No problem with new records however,
the following line will not display the current @ecard value on EDIT but ‘firstname.lastname@example.org’.
text_field :ecard, :sender, :value => 'email@example.com'
Don’t let your views take control, but if you insist:
text_field :ecard, :sender, :value => f.object.ecard.blank? ? 'firstname.lastname@example.org' : f.object.ecard
This doesn’t make sense, since when this object was created they deleted the default, which made it blank. Why would they want it back?