Added the belongs_to method in the model.
Added an if loop to a view page (index) to cover all possible outcomes
-Thanks for the help, Daniel
-Used data from two different tables to write a view page