Posts by Marcle Rodrigues • 21 points
1 post
-
2
votes2
answers349
viewsA: select_collection on Ruby on Rails
Create a Scope on the model: class Situation < Application Record #suas validações e parametros scope :active, -> { where(status: 'active' } scope :inactive -> { where(status: 'inactive' }…