Added :resource to attr_accessible