Created
January 27, 2014 20:17
-
-
Save neilsmind/8656387 to your computer and use it in GitHub Desktop.
snippet for formatted dates...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<tr class="nested-fields"> | |
#How do I use strftime on the drug date field below? | |
<td><%= f.input :drug_date, as: :string, label: false, :input_html => { class: 'ui-date-picker' } %></td> | |
<td><%= f.input :drug, label: false %></td> | |
<td><%= f.input :drug_amount, label: false %></td> | |
<td><%= f.input :drug_problem, label: false %></td> | |
<td><%= f.input :drug_administrator, label: false %></td> | |
<td><%= link_to_remove_association "remove", f, class: "btn btn-primary btn-sm" %></td> | |
</tr> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%= f.fields_for :drugs do |drug| %> | |
<%= render 'drug_fields', f: drug %> | |
<% end %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment