<%= simple_form_for(dmail) do |f| %> <%= f.input :to_name, :label => "To" %> <%= f.input :title %> <%= f.input :body, :html_options => {:size => "50x25"} %> <%= f.button :submit %> <%= submit_tag "Preview" %> <% end %>