You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# find all users named David who are Code Artists and sort by created_at in reverse chronological orderusers=User.where(name: 'David',occupation: 'Code Artist').order('created_at DESC')
whereas it probably could be :
# find all users named David who are Code Artists and sort by created_at in reverse chronological orderusers=User.where(name: 'David',occupation: 'Code Artist').order(created_at: :desc)
The text was updated successfully, but these errors were encountered:
4th code exerpt is :
whereas it probably could be :
The text was updated successfully, but these errors were encountered: