Mistři v programování na #hovnokod

Ruby #289

<% form_tag(advertiser_creatives_path(@advertiser), :method=>'post' ) do %>
  <% content_tag :table, :class => "form-tabular" do %>
    <% content_tag :thead do %>
      <% content_tag :tr do %>
        <% tag :th, :class=>'hide'%>
        <% content_tag :th do %>
          Concept (optional)
        <%end%>
        <% content_tag :th do %>
           Ad Tag
        <%end%>
        <% content_tag :th do %>
           Click-Through URL
        <%end%>
        <th/>
      <%end%>
    <%end%>
    <% content_tag :tbody, :id=>'creative_sub_forms' do %>
      <% creatives.each_with_index do |creative, index| 
          next unless creative.new_record?
        %>
        <% unless creative.errors.empty? %>
          <tr class='nowrap'>
            <td colspan='3'>
              Error:
              <% creative.errors.full_messages.each do |msg| %>
              <%= msg %><br/>
              <%end%>
            </td>
          </tr>
        <%end%>
        <%=render :partial => 'creative_fields', :locals => {:index => index, :creative => creative}%>
      <%end%>
    <%end%>
    <tr>
      <td colspan='3'><%= link_to_add_creative_fields "Add row"  %></td>
    </tr>
  <%end%>
  <br/>
  <br/>
  <%= submit_tag 'Continue', :class=>'button' %>
<%end%>

HovnoKod,