Work in progress: 181,232 of 181,233 sites checked so far, more every week · updated 2 Nov 2026Missing a blog? Tell us

Top all-time · #8479

J

Jon Leighton

Personal blog · jonathanleighton.com/articlesprogrammingweb

Jon Leighton's personal blog at jonathanleighton.com covers programming and web. Since 2011, 9 different Hacker News readers have linked it 10 times, most often “Rails Users: Should Mass Assignment Security Happen In The Model?”. The last post was in 2021, but the archive is still widely read.

Visit the blog
10mentions?
9HN people?
2011–2017first – last linked?
Links on Hacker News per year · peak 5 in 2012

Too few sampled comments (2) to say how often HN recommends it.?

Why HN links it

HN readers link Jon Leighton's blog for Rails writing, such as a post arguing that mass assignment security belongs outside the model, and cite his work on Rails associations.

Summarised by Claude from a sample of 2 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.

Most-linked posts?

  1. Rails Users: Should Mass Assignment Security Happen In The Model?
    2 people · 2 mentions · first linked 2011-08-19
  2. Explaining Focused Controller - Ruby on Rails
    2 people · 2 mentions · first linked 2012-09-20

What Hacker News says?

  1. "Mass assignment security is a feature that is aimed at dealing with form input. By placing it in the model, we end up making the implicit assumption that all ‘normal’ interaction with the model happens via a HTTP request. This assumption is incorrect and causes problems." http://jonathanleighton.com/articles/2011/mass-assignment-se...

    Comment linking /articles/2011/mass-assignment-security-shouldnt-happen-in-the-model/

    on “Chapter 6 of the Rails Tutorial, 2nd Edition is out ("Modeling users")”
  2. Submitted Square pegs, round holes, and Rails' directory structure as a story · 2 points

    HN discussion
  3. I'm very much looking forward to making use of the associations rewrite by Jon Leighton ( http://jonathanleighton.com/ ). Nested has-many:through relationships are a go! :)

    Comment linking /

    on “Rails 3.1 beta 1 released”
  4. Submitted Poltergeist - A PhantomJS driver for Capybara as a story · 2 points

    HN discussion
  5. Submitted Rails Users: Should Mass Assignment Security Happen In The Model? as a story · 2 points

    HN discussion
  6. Submitted Principles for deciding what to work on as a story · 1 points

    HN discussion
  7. Submitted Overhauling Loco2's Hosting Infrastructure with AWS, Docker and Terraform as a story · 1 points

    HN discussion
  8. Submitted Explaining Focused Controller - Ruby on Rails as a story · 1 points

    HN discussion
  9. Submitted Explaining Focused Controller (for Rails) as a story · 1 points

    HN discussion
  10. Submitted Hashes and encapsulation as a story · 1 points

    HN discussion

Search all of HN for jonathanleighton.com