{"action":"opened","issue":{"url":"https://api.github.com/repos/nathanvda/cocoon/issues/320","labels_url":"https://api.github.com/repos/nathanvda/cocoon/issues/320/labels{/name}","comments_url":"https://api.github.com/repos/nathanvda/cocoon/issues/320/comments","events_url":"https://api.github.com/repos/nathanvda/cocoon/issues/320/events","html_url":"https://github.com/nathanvda/cocoon/issues/320","id":110591164,"number":320,"title":"cocoon is creating multiple fields and also not rendering the date_select fields ","user":{"login":"kumar91gopi","id":10248907,"avatar_url":"https://avatars.githubusercontent.com/u/10248907?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar91gopi","html_url":"https://github.com/kumar91gopi","followers_url":"https://api.github.com/users/kumar91gopi/followers","following_url":"https://api.github.com/users/kumar91gopi/following{/other_user}","gists_url":"https://api.github.com/users/kumar91gopi/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar91gopi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar91gopi/subscriptions","organizations_url":"https://api.github.com/users/kumar91gopi/orgs","repos_url":"https://api.github.com/users/kumar91gopi/repos","events_url":"https://api.github.com/users/kumar91gopi/events{/privacy}","received_events_url":"https://api.github.com/users/kumar91gopi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T05:49:15Z","updated_at":"2015-10-09T05:49:15Z","closed_at":null,"body":"The issue is the date_select fields are not rendered properly i am not getting the drop-down and also initially when i click add education button 2 or 3 new fileds are rendered (date_select not rendered properly) but when i reload the page and then click add education button then its renders just one field(and that is what i want) but date_select fields are still not rendered properly\r\n\r\nfrom and to are the date_select fields\r\n![capture](https://cloud.githubusercontent.com/assets/10248907/10386624/b7aa1c9c-6e94-11e5-86d7-4565d9311099.JPG)\r\n \r\n\r\nhere is my nested form\r\n  <!-- education info-->\r\n      <div id=\"education_details\">\r\n        <h5 class=\"teal-text\">Education</h5>\r\n          <div class= \"input-fields\">\r\n           <%= f.fields_for :educations, @educations do |ff|%>\r\n             <%= render 'education_fields', :f => ff %>\r\n           <%end%>\r\n          </div>\r\n           <div class= \"links\">\r\n           <%= link_to_add_association 'add education', f, :educations %>\r\n           </div>\r\n      </div>\r\n\r\nhere is my _education_fields partial\r\n\r\n<div class=\"nested-fields\">\r\n    <div class= \"field\">\r\n    <%=f.label :institute, \"Institution Name\"%>\r\n    <%=f.text_field :institute%>\r\n    </div>\r\n    <div class= \"field\">\r\n    <%=f.label :field, \"Specialization\"%>\r\n    <%=f.text_field :field%>\r\n    </div>\r\n    <div class= \"field\">\r\n    <%=f.label :from%>\r\n    <%=f.date_select(:from, :discard_day => true, :start_year => 1995, :order => [:day, :month, :year], :include_blank => \"Please select\") %>\r\n    </div>\r\n    <div class= \"field\">\r\n    <%=f.label :to%>\r\n    <%=f.date_select(:to, :discard_day => true, :start_year => 1995, :order => [:day, :month, :year],  :include_blank => \"Please select\") %>\r\n    </div>\r\n     <%= link_to_remove_association \"Remove \", f %>\r\n</div>\r\n here is my model\r\nclass Profile < ActiveRecord::Base\r\n  has_many :educations, :dependent => :destroy\r\n  accepts_nested_attributes_for :educations,\r\n                                  :allow_destroy => true,\r\n                                  :reject_if     => proc { |attributes| attributes['institute'].blank? }\r\n\r\nvalidates :name, presence: true,  length: { maximum: 50 }\r\n \r\n  \r\nend"}}