# Virtus::Multiparams Support for Rails-style multiparameters, which makes `datetime_select` [and friends](http://api.rubyonrails.org/classes/ActionView/Helpers/DateHelper.html) work with [Virtus](https://github.com/solnic/virtus) objects. Rails Date, Time and DateTime selectors all use multiparameters. This means they break one attribute into separate parameters for each input, like year, month and day, and reconstitute these multiple parameters into a single parameter to be passed back into a model as an attribute. ## Usage ```ruby class PostForm include Virtus include Virtus::Multiparams attribute :title, String attribute :publish_at, DateTime end # app/views/posts/new.html.erb <%= form_for @post_form do |form| %> <%= form.label :title %> <%= form.text_field :title %> <%= form.label :publish_at %> <%= form.datetime_select :publish_at %> <%= form.submit %> <% end %> # app/controllers/posts_controller.rb class PostsController def new @post_form = PostForm.new end def create @post_form = PostForm.new(params[:post_form]) # ... end end ```