How to know about rails core knowledge for how instance variable available in view in case action mailer and action controller?

Please any idea will appreciate.