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
So I\'m building a form in rails 3.1, using <%= simple_nested_form_for(@person, :url => collection_url, :html=>{:multipart => true}) do |f| %>
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.
I have question model which has many options. In my question controller new action I create five options ready for my user
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:
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:
开发者_高级运维I have the following in my user model class User < ActiveRecord::Base has_many :gym_users
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
I am using RoR 3 to create a new website for myself.I have 3 models like so: Ship model has many ShipClasses
In my company form, I would like to be able to add products directly. Basically, a company can have many products.