nested-forms
Nested attribute not saving in a form with polymorphic associations
I\'m trying to make an app where a user can save goals, milestones for those goals, tasks for the milestones, and tasks for the goal itself. I\'m using polymorphic associations, but making a form to i[详细]
2023-03-19 19:23 分类:问答rails simple_nested_form_for fields_for wrong number of arguments
So I\'m building a form in rails 3.1, using <%= simple_nested_form_for(@person, :url => collection_url, :html=>{:multipart => true}) do |f| %>[详细]
2023-03-19 17:34 分类:问答nested form with polymorphic models
I\'m making an app with the following attributes, and I\'m working on a creating a single form to be able to save a goal, a goal\'s tasks, a goal\'s milestones, and a milestone\'s tasks.[详细]
2023-03-19 15:39 分类:问答Rails 3 rendering form with an array of nested attributes after failing validation
I have question model which has many options. In my question controller new action I create five options ready for my user[详细]
2023-03-19 06:55 分类:问答accepts_nested_attribute_for and multiple edits
Following on from this answer, I am having a spot of bother with accepts_nested_attributes_for. First things first, this is my error code:[详细]
2023-03-19 01:18 分类:问答Rails Nested Forms Not Updating
I\'m having a problem getting update_attributes to update nested models in my form. I don\'t have any errors but the nested attributes aren\'t saving. Here\'s the relevant code:[详细]
2023-03-18 09:45 分类:问答Rails: Need help with nested form rejecting nested object but still creating main object
开发者_高级运维I have the following in my user model class User < ActiveRecord::Base has_many :gym_users[详细]
2023-03-18 09:30 分类:问答How to create only the field_for object in a nested form
I have a nested form where users can create any amount of products (<%= f.fields_for :products d开发者_开发技巧o |product| %>) and at the same time also create a location (nested_form_for @locat[详细]
2023-03-17 21:08 分类:问答Ruby on Rails 3 - nested model forms
I am using RoR 3 to create a new website for myself.I have 3 models like so: Ship model has many ShipClasses[详细]
2023-03-17 17:58 分类:问答How to add products to a company?
In my company form, I would like to be able to add products directly. Basically, a company can have many products.[详细]
2023-03-17 03:42 分类:问答