Navigation Menu

Skip to content

Commit

Permalink
use wymeditor for the default text_area type that comes from the gene…
Browse files Browse the repository at this point in the history
…rator
  • Loading branch information
djones committed Sep 17, 2009
1 parent 2b069af commit 9f594e4
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -3,7 +3,11 @@
<% attributes.each do |attribute| -%>
<div class='field'>
<%%= f.label :<%= attribute.name %> %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<% if attribute.field_type.to_s == "text_area" %>
<%%= f.text_area :<%= attribute.name %>, :rows => 20, :cols => 140, :class => 'wymeditor' %>
<% else %>
<%%= f.<%= attribute.field_type %> :<%= attribute.name %> %>
<% end %>
</div>
<% end -%>
<div class='form-actions'>
Expand Down

0 comments on commit 9f594e4

Please sign in to comment.