<% doc = Jinda::Doc.new :issue_on=> Date.today, :process_at => Time.now %> <%= fields_for doc do |f| %> <%= f.select :x, [["SELECTION 1", 1], ["SELECTION 2", 2], ["SELECTION 3", 3]] %> <%= f.label :x, "Reference number" %> <%= f.text_field :x %> <%= f.label :issue_on, "Dated" %> <%= f.date_field :issue_on, "blackDays"=>[0,6] %> <%= f.label :y, "Summary" %> <%= f.text_area :summary, :cols=>50, :rows=>6 %> <%= f.label :dscan, "Attached document" %> <%= f.file_field :dscan %> <% end %> <%= label_tag :z, "Ungroup field" %> <%= text_field_tag :z %>