Sha256: 2daba445ac3ed89d6960c2b19cbcb957088401de251c69f26ce29829d28c9bb7
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
<%% javascript_tag do %> var new_<%=rule_name%> = '<%%=escape_javascript(render("/re_rule_definitions/<%=rule_name%>/form_word"))%>' $(document).ready(function() { $('#<%=rule_name%>_title').focus(); }); <%% end %> <%%= re_text_field "Title", "<%=rule_name%>_title", params[:<%=rule_name%>_title] || @re_rule.rule.title, :size => 30, :required => true, :error => @re_rule.rule.errors[:<%=rule_name%>_title], :span => '4x13' %> <%% position = 0 %> <%% (@re_rule.rule.words || []).each do | word | %> <%% f.fields_for :rule_data, {:first => false} do |frd| %> <%%= render '/re_rule_definitions/<%=rule_name%>/form_word', :f => frd, :position => position, :word => word %> <%% position += 1 %> <%% end %> <%% end %> <%% if position == 0 %> <%% f.fields_for :rule_data, {:first => false} do |frd| %> <%%= render '/re_rule_definitions/<%=rule_name%>/form_word', :f => frd, :position => position %> <%% end %> <%% end %> <div id="new_position_<%=rule_name%>"></div> <%%= re_form_text "", re_add_link('Add another word to filter', '<%=rule_name%>') %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rules_engine_templates-0.0.3 | rails_generators/templates/app/views/re_rule_definitions/tweet_filter/_form.html.erb |