<%= form_for [:admin, @meal_plan] do |f| %> # Meals: <%= select("meal_plan", "id", (3..8), {:selected => @meal_spec_position}, {:onchange=>"document.location.href='#{SUBDIRECTORY}autofill?meals='+this.value"} ) %>
 
<%= f.check_box :print_out_meals %> Display individual meal weights.
<% if @meal_plan.errors.any? %>

<%= pluralize(@meal_plan.errors.count, "error") %> prohibited this meal_plan from being saved:

<% end %> <%= f.hidden_field :user_id, :value => @user.id %> <%= f.submit %>
<% end %>