I have often the problem that rails outputs an error because of requests
from an empty database.
I will check, before showing features on the page, if a flag is set in
the database. The problem is, that the DB is not filled, if you dont add
the flag before. The result if i am doing the request is a nil object.
if @tourscheduler_user.tourscheduler_id == @tourscheduler.id then
The idee is: If there is a entry in @tourscheduler_user with the same id
then do else.
How can i check before if @tourscheduler_user.tourscheduler_id is empty?
Something like != nil ?