refactored dtext field helper

This commit is contained in:
albert
2011-10-21 17:45:49 -04:00
parent e8ac9cfcc1
commit 0eb665af0d
11 changed files with 38 additions and 41 deletions

View File

@@ -6,11 +6,11 @@
</div>
<%= simple_form_for(@user_feedback) do |f| %>
<%= f.input :user_name %>
<%= f.input :user_name, :label => "User" %>
<%= f.input :category, :collection => ["positive", "neutral", "negative"], :include_blank => false %>
<%= f.input :body, :input_html => {:size => "50x5"} %>
<%= dtext_field "user_feedback", "body" %>
<%= f.button :submit, "Submit" %>
<%= f.button :submit, "Preview" %>
<%= dtext_preview_button "user_feedback", "body" %>
<% end %>
</div>
</div>