Posts by Paulo • 11 points
2 posts
-
0
votes1
answer264
viewsA: Class Person > Legal person > Natural person. Rails 4
You can, before saving - in the controller, check that the fields are empty and not save if they are that way. Or maybe you can use the following expression in your model-Parent:…
-
1
votes1
answer103
viewsA: Ruby on Rails, form_for with 3 levels
Article.Rb has_many :items #repare no plural accepts_nested_attributes_for :items Item.Rb belongs_to :article, required: false #repare no singular has_many :comments accepts_nested_attributes_for…
ruby-on-railsanswered Paulo 11