SyntaxFix
Write A Post
Hire A Developer
Questions
In this case I like to use the exists? method provided by ActiveRecord:
exists?
Business.exists? user_id: current_user.id