-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hi
I have a rails form with a nested form. I used Ryan Bates nested form with jquery tutorial and I have it working fine as far as adding the new fields dynamically.
But when I go to submit the form it does not save any of the associated attributes. However if the partial builds when the form loads…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following form for photo_album which uses the nested forms feature of the Rails in saving the photos while updating the photo_album. And having trouble with the selection of radio button value. I want only one of the photos be able to select as the album cover, but due to the way rails…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have a three-level multi-nested form in Rails. The setup is like this: Projects have many Milestones, and Milestones have many Notes. The goal is to have everything editable within the page with JavaScript, where we can add multiple new Milestones to a Project within the page, and add new Notes…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Guys,
I was wondering if it was possible to create new parent, children in a has many relationship, using rails nested forms.
Rails documentation clearly says that this works in a one to one relationship. Not sure if its the same in has many relationship.
For example:
If
params = {
:employee…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I have the following model
class Project < ActiveRecord::Base
has_many :assignments, :conditions => {:deleted_at => nil}
has_many :members, :conditions => {:deleted_at => nil}
accepts_nested_attributes_for :members, :allow_destroy => true
end
class Member < ActiveRecord::Base
…
>>> More