سؤال

I want to way to add date and time as a simpleform field. Based on the simpleform documentation I was trying

  <%= f.datetime select :time, :as => :datetime %>

but I am receiving an "Argument Error in Houses#new".

هل كانت مفيدة؟

المحلول

Can you be more specific about what "doesn't work" means? Raises an error? Or doesn't render the expected input?

I'd guess this should look more like:

f.input :time, :as => :datetime
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top