Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #contributor.rb
- class Contributor < ActiveRecord::Base
- has_many :tags
- accepts_nested_attributes_for :tags
- attr_accessible :name, :keywords
- end
- #tag.rb
- class Tag < ActiveRecord::Base
- belongs_to :contributor
- attr_accessible :title, :id
- end
Add Comment
Please, Sign In to add comment