Current_user or team
That would pull all the listings from the teams they are associated with.
To filter down to theirs out of the associated team listings, I'm assuming you have a
To filter down to theirs out of the associated team listings, I'm assuming you have a
belongs_to :user
on the Listing model? If so, you can do:has_many :listings, ->(user) { where(user_id: user.id) }, through: :teams
Sure could. Teams already have billing separate for each one, so you could just add payments to the new team form and update the controller to process payment along with create.
The easiest option might be to let them create a team, but don't let them do anything without subscribing/paying.
The easiest option might be to let them create a team, but don't let them do anything without subscribing/paying.
Notifications
You’re not receiving notifications from this thread.