Displaying 1 result from an estimated 1 matches for "tourscheduler_user".
2008 Jul 16
2
Error prevention by empty DB's request
...l 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.
For example:
----------------------------------------------------------------------
if @tourscheduler_user.tourscheduler_id == @tourscheduler.id then
''bla''
else
''bla2''
end
----------------------------------------------------------------------
The idee is: If there is a entry in @tourscheduler_user with the same id
then do else.
How can i check before if @toursc...