Undefined method `stringify_keys!' for "Tue Apr 18 11:26:00


#1

hi all
i am submitting form and i take valu from two text fields.
my controller code is like that
def saleinsert
@verkaufsliste = Verkaufsliste.create(params[:bestandsliste])
@listes = Verkaufsliste.create(params[:verkaufsliste.to_s])
@verkaufsliste=Verkaufsliste.create(@listes.vkdatum.to_s)
if @verkaufsliste.save
redirect_to :action => ‘list’
else
render :action => ‘sale’
end
end


#2

@verkaufsliste=Verkaufsliste.create(@listes.vkdatum.to_s)

I think it’s better to use strftime(’%d %B %Y’) for .to_s.
strftime is a great function that you can redefine easily (in German for
example :wink:

++

o_O Pierre M.