Update resource_view.rb