Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added support for date type in _form partial.
- thanks to joshuamiller for fix
  • Loading branch information
Aaron Wheeler committed May 18, 2008
1 parent 9e90e96 commit bb72726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/merb_autoscaffold/views/_form.html.erb
Expand Up @@ -15,7 +15,7 @@
<input type="text" name="model[<%= column.name %>]" value="<%= model.send( column.name ) %>" />
<% when :text %>
<textarea name="model[<%= column.name %>]"><%= model.send( column.name ) %></textarea>
<% when :datetime %>
<% when :datetime, :date %>
<input type="text" name="model[<%= column.name %>]" value="<%= model.send( column.name ) %>" />
<% else %>
<%= "Don't know how to edit #{ column.type }" %>
Expand Down

0 comments on commit bb72726

Please sign in to comment.