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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community 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])
   @verkaufsliste=Verkaufsliste.create(@listes.vkdatum.to_s)
if @verkaufsliste.save
	      redirect_to :action => 'list'
else
	      render :action => 'sale'
end
end
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.