I have the following models: class Survey < ActiveRecord::Base set_primary_key :survey_id # I\'m using external DB
I\'m having trouble with nested attributes and Devise.A similar issue to How do I use nested attributes with the devise model.
I\'ve been struggling with this far too long now. For the simplicity, suppose I have Lead The Jungle app in which users ask
I havethe following models: class Evaluation < ActiveRecord::Base attr_accessible :product_id, :description, :evaluation_institutions_attributes
Models: class Topic < ActiveRecord::Base has_many:posts, :dependent => :destroy validates:name, :presence => true,
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
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
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
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?
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