fixed issue with resources show.html.erb that caused an exception