added 'show' method to rails controller