On 20 July 2010 12:29, IanJ wrote:
> Urgghhh - Newbie help needed to stop me giving up on Rails.
>
> I have 3 nested models.
> Recipe->RecipeParts->RecipeIngredients (to the ingredients index so
> maybe 4 levels)
>
> class Recipe < ActiveRecord::Base
> has_many :recipe_parts
> accepts_nested_att
Urgghhh - Newbie help needed to stop me giving up on Rails.
I have 3 nested models.
Recipe->RecipeParts->RecipeIngredients (to the ingredients index so
maybe 4 levels)
class Recipe < ActiveRecord::Base
has_many :recipe_parts
accepts_nested_attributes_for :recipe_parts
class RecipePart < Act
2 matches
Mail list logo