Attr Accessor in Rails 4

Is attr_accessor no longer used in RAils 4 since there are strong parameters? If strong parameters are disabled, then are attr_accessors necessary?

Are attr_accessors no longer needed in Rails 4 since there are strong params? If strong params are disabled, then are attr_accessors necessary?

attr_accessor is unrelated to strong parameters - it’s a core Ruby function: Class: Module (Ruby 2.1.2)

You may be referring to attr_accessible, which has been removed to the protected_attributes gem in Rails 4: GitHub - rails/protected_attributes: Protect attributes from mass-assignment in ActiveRecord models.

–Matt Jones