Sha256: 99c07f98659e445d9a517d09561a9ed7942d7b07b11629e4149971372140357c
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
<% position = 0 %> <% (@rule.words || []).each do | word | %> <% f.fields_for :rule_data, {:first => false} do |frd| %> <%= render :partial => '/re_rule_definitions/blacklist_word/word', :locals => { :f => frd, :position => position, :word => word} %> <% position += 1 %> <% end %> <% end %> <% if position == 0 %> <% f.fields_for :rule_data, {:first => false} do |frd| %> <%= render :partial => '/re_rule_definitions/blacklist_word/word', :locals => { :f => frd, :position => position} %> <% end %> <% end %> <div id="new_position_blacklist_word"></div> <%= form_text_ext "", render_add_link('Add another word to the blacklist', 'blacklist_word') %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rules_engine-0.0.1 | rails_generators/templates/app/views/re_rule_definitions/blacklist_word/_words.html.erb |