Skip to content

Instantly share code, notes, and snippets.

@uokesita
Created January 18, 2011 00:55
Show Gist options
  • Save uokesita/783817 to your computer and use it in GitHub Desktop.
Save uokesita/783817 to your computer and use it in GitHub Desktop.
class Post < ActiveRecord::Base
...
has_many :seccione, :dependent => :destroy
accepts_nested_attributes_for :seccione, :reject_if => :all_blank
...
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment