My Ruby app is showing the beginning of the month (day 1) when processing:
start_month => Date.today.month
I would like the end of the month, so I changed it to:
start_month => Date.today.end_of_month
but it is showing the beginning of the month. Would you know why?
Based on the comments, I rewrote as follows, yet it still does not work. I am sure I am misspelling something
<div class="field">
<%= f.label :delivered_at, "Estimated delivery" %><br />
<%= f.date_select(:delivered_at.end_of_month, :start_year => Date.today.year, :start_month => Date.today.end_of_month,:prompt => { :month => 'Choose month', :year => 'Choose year'}, :discard_day => true) %>
</div>