<% form_for(:stage, :url => recipes_project_stage_path(@project, @stage), :html => { :method => :put }) do |f| %>
Recipes to use <% if Recipe.count > 0 %> <% for recipe in Recipe.find(:all, :order => 'name ASC') %> <% end %>
Use Name Description
/> <%= link_to h(recipe.name), recipe_path(recipe) %> <%=h recipe.description %>

<%= submit_tag "Update used recipes" %>

<% else %> No recipes present

<% end %>
<% end %>
<%= link_to 'Back to stage', project_stage_path(current_project, current_stage), :class => 'arrow_link' %> <% content_for(:breadcrumb) do %> <% breadcrumb_box do %> <%= link_to "Back to stage", project_stage_path(current_project, current_stage), :style => "float:right", :class => "arrow_link" %> <%= link_to "Projects", projects_path %> > Project <%= link_to current_project.name, project_path(current_project) %> > Stage <%= link_to current_stage.name, project_stage_path(current_project, current_stage) %> > Recipes management <% end %> <% end %> <% content_for(:page_title) do %> <% @page_title = "Recipes management for stage: #{h @stage.name}"%>

Recipes management

<% end %>