Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% form_tag ('/posts') do %>
- <% @posts.each_with_index do |post, index| %>
- <%= error_messages_for :post %>
- <% fields_for "test""post_#{index}" do |f|%>
- <p><%= f.text_field :title %></p>
- <p><%= f.text_area :body %></p>
- <% end %>
- <% end %>
- <%= submit_tag "Create" %>
- <% end %>
- <%= link_to 'Back', posts_path %>
Add Comment
Please, Sign In to add comment