Edit: It looks like defining @categories again in the task\'s create method did the trick of clearing up the error. Still working on actually having the category update when I submit the task, because
I have a model Album which has a \"has_many :trough\" assocation named Track. Basically, an album can have a number of tracks on it, but a track can belong to more than one album at the same time (hen
I\'m stuck with this simple selection task. I have this models: #id:integer(4)not null, primary key #category:string(255)
Given three models: Document Asset AssetCategory A document accepts_nested_attributes_for assets (a document has_many assets), and an asset belongs_to an asset category.
I wanna try to make this is as sim开发者_如何学编程ple as possible. Lets say I have a Project Model and a Task Model
I am having a little trouble figuring how to do this. here\'s my scenario A User must create a IncomeDeclaration for h开发者_如何学Cis Business.
I\'m writing a (text) messaging app with Rails. I\'m using nested_forms to allow you to send a message to multiple people.
I\'ve got a multi layer nested form User->Tasks->Prerequisites and in the same form User->Tasks->Location
I read through a lot of pages on `has_one relationships and nested attributes but haven\'t been successful in making this work. Any help would be fantastic.
I\'ve got some nested objects in rails. User -> has_many :tasks -> has_one :location. Yesterday, I thought I was having trouble linking the location values to the task, but now I realize that I\'m n