Rails keeps creating empty post
i am having a bit off difficulty with a to-do list application. Whenever i
create the first task it seems rails creates a second one with empty
values and i just cant figure out why. Any ideas
Here is the code to loop over tasks
<% current_user.tasks.each do |task| %>
<p><%= task.title %></p>
<%= link_to 'Edit', edit_task_path(task) %> |
<%= link_to 'Destroy', task, method: :delete, data: { confirm: 'Are you
sure?' } %> |
<% end %>
No comments:
Post a Comment