Sign in
Log inSign up

How big should a controller action be?

Ankit Singhaniya's photo
Ankit Singhaniya
·Mar 2, 2017

From what I've read, people say the controller needs to be skinny. I was looking into one of the popular rails app discource and here is a controller from that app.

As we can see there are action which are 30 lines long. Is that ok to have? Any ideas feedback and suggestions on this?

Hassle-free blogging platform that developers and teams love.
  • Docs by Hashnode
    New
  • Blogs
  • AI Markdown Editor
  • GraphQL APIs
  • Open source Starter-kit

© Hashnode 2024 — LinearBytes Inc.

Privacy PolicyTermsCode of Conduct