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

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

@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.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs