When developing a Rails App, should one create controllers, models, and then integrate user authentication?

When developing a Rails App, should one create controllers, models, and then integrate user authentication? or the other way (installing a gem like devise, and connecting controllers/models) as you go along)
You already invited:

Felix

Upvotes from:

I believe Devise needs a model for authentication to begin with
i think it's common to start with thin models and controllers, and add (including authentication) as you go along

Marion

Upvotes from:

it depends a little on the app type, but as most apps now tend to be ‘closed’ (you have to log in first) it is best to do the user/permissions first (I normally use devise/pundit/rolify). You can even customise the scaffolds (if you use them) to auto add the authentication parts.

If you wanna answer this question please Login or Register