Sha256: fc2f8785339f17564fc795ac9f8e5218a27a98f4f0ac75cc2913e35869d2d8e4

Contents?: true

Size: 713 Bytes

Versions: 8

Compression:

Stored size: 713 Bytes

Contents

<%% position = 0 %>
<%% (@re_rule.rule.words || []).each do | word | %>  
  <%% f.fields_for :rule_data, {:first => false} do |frd| %>
    <%%= render :partial => '/re_rule_definitions/<%=rule_name%>_rule/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/<%=rule_name%>_rule/word', :locals => { :f => frd, :position => position} %>      
  <%% end %>
<%% end %>

<div id="new_position_<%=rule_name%>"></div>
<%%= re_form_text "", re_add_link('Add another word to match', '<%=rule_name%>') %>    

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rules_engine-0.1.1 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.1.0 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.8 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.7 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.6 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.5 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.4 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb
rules_engine-0.0.3 rails_generators/templates/app/views/re_rule_definitions/complex_rule/_words.html.erb