Your Class:
class YourClass < ActiveRecord::Base
attr_accessor :some_date
columns_hash["some_date"] = ActiveRecord::ConnectionAdapters::Column.new("some_date", nil, "date")
end
Your View:
<%= form_for :your_class do |f| %>
<%= f.date_select :some_date %>
<%= f.submit %>
<% end %>
Your Controller:
@your_class.attributes = params[:your_class]
Thanks Paul I was searching around for ages trying to replace composed_of, great tip.