Guest User

Untitled

a guest
Oct 18th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.26 KB | None | 0 0
  1. #contributor.rb
  2. class Contributor < ActiveRecord::Base
  3.   has_many :tags
  4.   accepts_nested_attributes_for :tags
  5.  
  6.   attr_accessible :name, :keywords
  7. end
  8.  
  9.  
  10. #tag.rb
  11. class Tag < ActiveRecord::Base
  12.   belongs_to :contributor
  13.   attr_accessible :title, :id
  14. end
Add Comment
Please, Sign In to add comment