Displaying 1 result from an estimated 1 matches for "dtmfechainicio".
2006 Jun 30
0
storing dates from a date_select does not work
...QL)
I have the field dtmfechanac of type date
I have this in the view
<%= date_select ''usuario'', ''dtmfechanac'', :start_year => 1900 %>
and I have this in te controller
data = {
"dtmfechanac" => params[:usuario][:dtmfechanac]
"dtmfechainicio" => params[:usuario][:dtmfechainicio]
}
But it doesnt work I have tried
params[:usuario][:dtmfechanac].to_s .to_time but still no luck
I get this error
--
You have a nil object when you didn''t expect it!
The error occured while evaluating nil.to_formatted_s
--
but the date is bei...