I am searching the database to show some clients with the following
@client = Client.find(params[:id],
:conditions => [‘user_id = ?’,session[:user_id]])
if the combination is ok - i see the record on my page
if not - RoR shoot an error:
Couldn’t find Client with ID=16 AND (user_id = 5)
how can I catch that error?
thanks for any tip