Displaying 1 result from an estimated 1 matches for "newstatinfo".
Did you mean:
_newstatinfo
2006 Aug 04
5
Creating new record from a form? (stringify_keys! error)
...@stat = Biostat.new(params[:the_date])
@stat.weight = params[:weight]
@stat.height = params[:height]
if @stat.create
flash[:notice] = "successfully saved"
else
flash[:notice] = "FAILED"
end
else
render_partial ''newStatInfo''
end
end
When run I get " undefined method `stringify_keys!'' for "08 / 04 /
2006":String "
I''m pretty sure I''m not creating the record properly but I thought is
was as simple as "Biostat.new"
the only condition is that '...