I have an Object where the object has a nested form of which can be duplicated as needed. 开发者_JS百科To accomplish this I am using :
I\'m using Rails 2.3.8 and accepts_nested_attributes_for. I have a simple category object which uses awesome_nested_set to allow nested categories.
Hey, this is the first time I\'ve actually finished writing up a question without SO giving me the answer in the process. :)
I\'m trying to add a fields_for attribute to a nested rails form. Any time I try to create a new object开发者_JAVA百科, it returns
So suppose I have the Person and Child models: class Person < ActiveRecord::Base has_many :children accepts_nested_attributes_for :children
I have a nested form that is based on the following model -- A lesson has many questions, each question has many answers, and answers belong to users.
I have a \'User\' model which has a has_many relationship to a \'Number\' model through a join table \'user_number\' model.
I am trying to save many new objects in a form to one pre-existing parent object. - form_for :parent_object do |f|
I am trying to create a comment that could comment on other comments but are all derived from a single post.
I\'m creating a basic blog application and I\'m running into issues displaying error messages when a user tries to submit a blank comment. Instead of getting a nice looking error message, an active re