CUBASE 5 + GUITAR RIG + MICROPHONE ,HELP!

Hello,I connected my condenser mic and the guitar through a scarlett 2i2,and i am trying to make both work in cubase.
When I play my guitar in guitar rig it works,however, cubase only registers my microphone and not the guitar.How should I set up my guitar and mic to make both record in separate audio tracks?

Thanks for any help!