I have a recipe, ingredient, Ingredient_Recipe models
recipe has
has_many :ingredient_recipes
has_many :Ingredients, :through => :RecipeIngredient
ingredient has
has_many :ingredient_recipes
has_many :Recipes, :through => :RecipeIngredient
Ingredient_Recipe has
belongs_to :recipes
belongs_to :ingredients
in my ui this doenst work anymore
<% @recipe.ingredients.each do |ingredient| %>
EDIT
ActionView::Template::Error (uninitialized constant Recipe::Ingredients):
97: </td>
98: <tr>
99: <td >
100: <% @recipe.ingredients.each do |ingredient| %>
101: ingredient.name
102: <% end %>
103: </td >