<% phc_title "Tutorial Post Manager" %> <% phc_title_tagline "Tutorial Index" %> <% phc_breadcrumb_one yield(:phc_title_tagline) %> <% phc_breadcrumb_two link_to "Tutorial Index", phcdevworks_tutorials.tutorial_posts_path %>

<%= yield(:phc_title) %>

<% @tutorial_steps.each do |tutorial_step| %> <% end %>
Tutorial Step Number Tutorial Step Title
<%= tutorial_step.tutorial_step_number %> <%= tutorial_step.tutorial_step_title %> <%= truncate(tutorial_step.tutorial_step_text, :length => 80, :escape => false) %>
<%= link_to "Update Step", edit_tutorial_post_step_path(tutorial_step.post, tutorial_step), class: "btn btn-primary btn-xs" %> <%= link_to "Remove Step", tutorial_post_step_path(tutorial_step.post, tutorial_step), method: :delete, data: { confirm: "Are you sure? This Action Cannot be Reversed." }, class: "btn btn-danger btn-xs" %>
<%= link_to phcdevworks_tutorials.new_tutorial_post_step_path, class: "btn btn-primary btn-sm" do %> Add a New Step for Tutorial <% end %>