nested-attributes
Rails 3.1.rc1 and accept_nested_attributes_for
I have the following models: class Survey < ActiveRecord::Base set_primary_key :survey_id # I\'m using external DB[详细]
2023-03-08 13:31 分类:问答Mass assignment warning when using nested attributes with Devise
I\'m having trouble with nested attributes and Devise.A similar issue to How do I use nested attributes with the devise model.[详细]
2023-03-06 11:31 分类:问答Creation of multiple nested objects
I\'ve been struggling with this far too long now. For the simplicity, suppose I have Lead The Jungle app in which users ask[详细]
2023-03-05 14:56 分类:问答Suppress "base" in error text for custom validation of Rails nested attributes
I havethe following models: class Evaluation < ActiveRecord::Base attr_accessible :product_id, :description, :evaluation_institutions_attributes[详细]
2023-03-03 20:22 分类:问答nested attributes in simple_form returns mass assignment error
Models: class Topic < ActiveRecord::Base has_many:posts, :dependent => :destroy validates:name, :presence => true,[详细]
2023-03-03 03:25 分类:问答Rails problem accepts_nested_attributes_for
I have this problem: My web application has a form where the users can customize their profile. In each profile can be specified many skills and I want to allow the users to press one button (add new[详细]
2023-03-02 20:07 分类:问答Rails 3 - Controller 'new' action with nested resource returning 'NoMethodError'
I created a message board for my application and uses the following three models to work the whole thing: Forums have many topics, and topics have many posts. Posts is a nested resource of Topic, and[详细]
2023-03-02 12:44 分类:问答Nested forms fields_for :prices, repeat forms few time
i have many to many throught asociation and then i do this fields_for :device this displaying in good way, but i cannot save it i get unknown attribute :price[详细]
2023-02-28 16:50 分类:问答How to refer to high-level model from nested one?
I\'m trying to make conditional validation based on Project status in Payment model. For example status can be \"Talks\" or \"Active\". What\'s the best way to do it considering the structure below?[详细]
2023-02-28 07:40 分类:问答Rails accepts_nested_attributes_for return values for updated/inserted children
I\'am a stackoverflow newbie. Please be merciful ;-) I h开发者_如何学JAVAave a simple has_many association with accepts_nested_attributes_for. Everything works fine. But I what I really need are the[详细]
2023-02-28 00:53 分类:问答