Forum: Ruby on Rails undefined method `stringify_keys!' for "Tue Apr 18 11:26:00

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
parikshit (Guest)
on 2006-04-18 10:00
(Received via mailing list)
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])
	      redirect_to :action => 'list'
	      render :action => 'sale'
pmt (Guest)
on 2006-04-18 11:59
>    @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 ;)


o_O Pierre M.
This topic is locked and can not be replied to.