address: |
<%= address.gsub(/^/, ' ').rstrip %>
email: <%= email %>
-mumbership_fee_paid_on: <%= membership_fee_paid_on %>
+membership_fee_paid_on: <%= membership_fee_paid_on %>
---
<%= notes %>
end
def new_id
- new_id = Dir.glob("#{current_dir}/Membres/*.mdwn").
- collect { |f| File.basename(f).gsub(/\.mdwn$/, '').to_i }.max + 1
+ max_id = Dir.glob("#{current_dir}/Membres/*.mdwn").
+ collect { |f| File.basename(f).gsub(/\.mdwn$/, '').to_i }.max || 0
+ max_id + 1
end