HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
rails
protected_attributes
Ruby2014–2014
rails / protected_attributes

protected_attributes

Protect attributes from mass-assignment in ActiveRecord models.

4Distinct people
4Mentions
0Explicit recommenders
231GitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

Protect attributes from mass-assignment in ActiveRecord models.

GitHub

Where it is used

No documented product use has been verified yet.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 1:49:46 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by hour4 dated mentions

Observed mentions: 2014-04-08 19:57:55 UTC to 2014-04-08 20:00:27 UTC.

01232014-04-08 19:00:00 UTC to 2014-04-08 20:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 commentsApr 8, 19:002014-04-08 20:00:00 UTC to 2014-04-08 21:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 commentsApr 8, 20:00

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
Apr 8, 19:002014-04-08 19:00:00 UTC2014-04-08 20:00:00 UTC303
Apr 8, 20:002014-04-08 20:00:00 UTC2014-04-08 21:00:00 UTC101

What Hacker News says

4 sources
It does not, you can actually pull in a gem[1] to use attr_accessible just fine with Rails 4. If you want to transition to strong_parameters, you can include the gem in your Rails 3 project and begin migrating to it, though that's a tough sell on most Rails codebases I've seen as it requires you to update every action in your app. I have not personally migrated any of my code to Rails 4 from 3.2 yet but the transition will be far smoother than 2.3->3 was. [1] - https://github.com/rails/protected_attributes
In Rails 4.1.0 released
3.2 -> 4 is an order of magnitude easier than 2 -> 3. The upgrade guide is pretty solid, and I imagine it mostly applies for Rails 4.1 as well: http://guides.rubyonrails.org/upgrading_ruby_on_rails.html#u... I spent most of my time updating app config. For several of my 3.2 apps, I started using strong_parameters, so it wasn't a leap for me. Another app I have on 4.0 is using the https://github.com/rails/protected_attributes to retain the existing attr_accessible behavior until I get time to update. Hope that helps!
In Rails 4.1.0 released

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.