I would like to display a create form like so:
<% form_for :customer, :action => Customers.url_for(:create) do %>
<%= text_control :name, :label => 'New Customer: ' %>
<%= submit_button 'Create' %>
<% end %>
However, this requires I assign @customer = Customer.new in my action in order to generate the default value for the fields.
Creating this dummy object is a bit of a pain. If Merb::Helpers::Form#control_value checked for nil of @_obj, then the form will function if I don't want to provide that information.
Proposed fix, /plugins/merb_helpers/lib/merb_helpers/form_helpers.rb line 154:156:
def control_value(col) #:nodoc:
@_obj.send(col) if @_obj
end