I am new on rails. Below is what i am trying class Category < ActiveRecord::Base attr_accessible :name has_many :post end class Post < ActiveRecord::Base attr_accessible :title, :body, :category_id, :author_id belongs_to :category end but i am not sure how to use attr_accessible in rails 4+ in my above scnerio . I was doing as per old .Please suggest
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)