SyntaxFix
Write A Post
Hire A Developer
Questions
I would do it this way if you needed an instance variable of the object to work with:
if @business = Business.where(:user_id => current_user.id).first #Do stuff else #Do stuff end