Hi all,

well I have this helper in my form, but it isn't DRY, as you see:

<%= f.text_field(:birth_date, :size => '10', :maxlength =>
'10', :class => "format-d-m-y divider-slash split-date", :value =>
(@person.birth_date.nil? ? '': @person.birth_date)) %>

so, @person and :birth_date must be dymamic in a helper.


How can I write those on a helper?
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to